diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-04-06 22:46:47 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-04-07 00:07:08 +0200 |
commit | 0e2f0fedcd2232260378e760018a8ed84bd34343 (patch) | |
tree | 5c4937c853a8c767f14900d26ca68e382ba3f23e | |
parent | 15a23a83326d70e470a6b5c8d71e55257bffd97b (diff) | |
download | ffmpeg-streaming-0e2f0fedcd2232260378e760018a8ed84bd34343.zip ffmpeg-streaming-0e2f0fedcd2232260378e760018a8ed84bd34343.tar.gz |
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@niedermayer.cc>
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |