[FFmpeg-cvslog] lavf/avidec: Do not test for bitrate <= INT_MAX.
Carl Eugen Hoyos
git at videolan.org
Fri May 10 11:59:35 EEST 2019
ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Fri May 10 10:44:34 2019 +0200| [ab648f79c8160a8e69fb02f308ca3428762ebfe0] | committer: Carl Eugen Hoyos
lavf/avidec: Do not test for bitrate <= INT_MAX.
AVCodecContext->bit_rate is int64_t since 7404f3bd
Unbreaks non-interleaved detection of v210 4k avi files, broken since 0eec40b7.
Reported-by: Xavier Càmara, Centre de Conservació i Restauració, Filmoteca de Catalunya
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ab648f79c8160a8e69fb02f308ca3428762ebfe0
---
libavformat/avidec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index bae9220a76..1d887b1cc9 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -456,7 +456,7 @@ static int calculate_bitrate(AVFormatContext *s)
continue;
duration = st->index_entries[j-1].timestamp - st->index_entries[0].timestamp;
bitrate = av_rescale(8*len, st->time_base.den, duration * st->time_base.num);
- if (bitrate <= INT_MAX && bitrate > 0) {
+ if (bitrate > 0) {
st->codecpar->bit_rate = bitrate;
}
}
More information about the ffmpeg-cvslog
mailing list