diff options
author | Michael Niedermayer <[email protected]> | 2013-09-22 17:36:39 +0200 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2013-09-22 17:36:39 +0200 |
commit | 70a1182a484402fc893d7fe4530d7bb9d636524a (patch) | |
tree | fc5d2389e4f6e5a8fadb38c734cc713578054bb8 /libavformat/utils.c | |
parent | 49d597f058a9f3a09d272e711d636f5e6829920e (diff) | |
parent | f844cb9bced3148fca2db5bbb092929526108005 (diff) |
Merge commit 'f844cb9bced3148fca2db5bbb092929526108005' into release/0.8
* commit 'f844cb9bced3148fca2db5bbb092929526108005':
iff: validate CMAP palette size
wmaprodec: require block_align to be set.
lzo: fix overflow checking in copy_backptr()
flacdec: simplify bounds checking in flac_probe()
atrac3: avoid oversized shifting in decode_bytes()
lavf: fix arithmetic overflows in avformat_seek_file()
Conflicts:
libavformat/iff.c
Merged-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 9e6678f007..ccc7540e96 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1828,7 +1828,7 @@ int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts, int //Fallback to old API if new is not implemented but old is //Note the old has somewat different sematics if(s->iformat->read_seek || 1) - return av_seek_frame(s, stream_index, ts, flags | (ts - min_ts > (uint64_t)(max_ts - ts) ? AVSEEK_FLAG_BACKWARD : 0)); + return av_seek_frame(s, stream_index, ts, flags | ((uint64_t)ts - min_ts > (uint64_t)max_ts - ts ? AVSEEK_FLAG_BACKWARD : 0)); // try some generic seek like av_seek_frame_generic() but with new ts semantics } |