[FFmpeg-cvslog] ffmpeg: Change duration to int64_t
Michael Niedermayer
git at videolan.org
Fri Apr 7 01:07:33 EEST 2017
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Apr 6 22:46:47 2017 +0200| [0e2f0fedcd2232260378e760018a8ed84bd34343] | committer: Michael Niedermayer
ffmpeg: Change duration to int64_t
It is assigned from 64bit input in some branches and used with 64bit timestamps
This thus fixes a potential integer truncation
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0e2f0fedcd2232260378e760018a8ed84bd34343
---
ffmpeg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index ea03179..444b963 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2617,7 +2617,7 @@ static int process_input_packet(InputStream *ist, const AVPacket *pkt, int no_eo
// while we have more to decode or while the decoder did output something on EOF
while (ist->decoding_needed) {
- int duration = 0;
+ int64_t duration = 0;
int got_output = 0;
int decode_failed = 0;
More information about the ffmpeg-cvslog
mailing list