Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-04-06 23:46:47 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2017-04-07 01:07:08 +0300
commit0e2f0fedcd2232260378e760018a8ed84bd34343 (patch)
tree5c4937c853a8c767f14900d26ca68e382ba3f23e /ffmpeg.c
parent15a23a83326d70e470a6b5c8d71e55257bffd97b (diff)
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>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index ea03179c21..444b963009 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;