diff options
author | Michael Niedermayer | 2015-09-15 18:01:32 +0200 |
---|---|---|
committer | Carl Eugen Hoyos | 2015-09-15 18:02:43 +0200 |
commit | 7404f3bdb90e6a5dcb59bc0a091e2c5c038e557d (patch) | |
tree | 08d1d4010e20cd696e358bf03f9e2565f3256e0c /libavformat/rdt.c | |
parent | 28e023377cfe42c5406441eeff32842c1bb1f09f (diff) |
lavc: Switch bitrate to 64bit unless compatibility with avconv was requested.
Diffstat (limited to 'libavformat/rdt.c')
-rw-r--r-- | libavformat/rdt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/rdt.c b/libavformat/rdt.c index 046d2732a4..0e6ac8ec76 100644 --- a/libavformat/rdt.c +++ b/libavformat/rdt.c @@ -448,7 +448,11 @@ real_parse_asm_rule(AVStream *st, const char *p, const char *end) { do { /* can be either averagebandwidth= or AverageBandwidth= */ +#if AV_HAVE_INCOMPATIBLE_LIBAV_ABI if (sscanf(p, " %*1[Aa]verage%*1[Bb]andwidth=%d", &st->codec->bit_rate) == 1) +#else + if (sscanf(p, " %*1[Aa]verage%*1[Bb]andwidth=%"SCNd64, &st->codec->bit_rate) == 1) +#endif break; if (!(p = strchr(p, ',')) || p > end) p = end; |