diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-10-09 04:02:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-09 04:02:03 +0200 |
commit | c5db8b4d09762f5228eaf3c3a0017657ed27d866 (patch) | |
tree | 59719cfc31a9e112b3f7099392506a6e1e54449f /libavformat/utils.c | |
parent | 7fb92be7e50ea4ba5712804326c6814ae02dd190 (diff) | |
parent | a31e9f68a426f634e002282885c6c2eb1bfbea44 (diff) | |
download | ffmpeg-c5db8b4d09762f5228eaf3c3a0017657ed27d866.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
lavf: fix signed overflow in avformat_find_stream_info()
vp8: fix signed overflows
motion_est: fix some signed overflows
dca: fix signed overflow in shift
aacdec: fix undefined shifts
bink: Check for various out of bound writes
bink: Check for out of bound writes when building tree
put_bits: fix invalid shift by 32 in flush_put_bits()
Conflicts:
libavcodec/bink.c
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index e9c60e73f0..d98a17aeda 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2435,10 +2435,10 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) } { int64_t last = st->info->last_dts; - int64_t duration= pkt->dts - last; - if(pkt->dts != AV_NOPTS_VALUE && last != AV_NOPTS_VALUE && duration>0){ + if(pkt->dts != AV_NOPTS_VALUE && last != AV_NOPTS_VALUE && pkt->dts > last){ double dts= pkt->dts * av_q2d(st->time_base); + int64_t duration= pkt->dts - last; // if(st->codec->codec_type == AVMEDIA_TYPE_VIDEO) // av_log(NULL, AV_LOG_ERROR, "%f\n", dur); |