aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-06 18:49:35 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-06 19:04:27 +0200
commit0ca3dbbfcef0de304b6c6458787edbefc7a004d1 (patch)
tree71d80ecb8a5aefb75b6c3d2831db0e2ba9f449a0 /libavformat/utils.c
parent82c6b76d701a44941da47fb60ddf13d94769b91e (diff)
parenta248117f2618e9e4de3c87e685bce44578b11657 (diff)
downloadffmpeg-0ca3dbbfcef0de304b6c6458787edbefc7a004d1.tar.gz
Merge tag 'n0.8.15' into release/0.7
FFmpeg 0.8.15 release * tag 'n0.8.15': (49 commits) update for 0.8.15 avcodec/ffv1enc: update buffer check for 16bps avcodec/dsputil: fix signedness in sizeof() comparissions avcodec/pngdsp: fix (un)signed type in end comparission matroska_read_seek: Fix used streams for subtitle index compensation jpeg2000: check log2_cblk dimensions avcodec/rpza: Perform pointer advance and checks before using the pointers update all trac links to use the trac subdomain doc/APIchanges: List merge commit hashes and version numbers apichanges: fix 2 wrong hashes avcodec/parser: reset indexes on realloc failure mpeg12dec: avoid reinitialization on PS changes when possible. mpegts: only reopen pmt_cb filter if its different from the previous. Autodetect idcin only if audio properties allow decoding. alacenc: Fix missing sign_extend() h264_cavlc: fix reading skip run Update changelog for 0.7.8 release aac: check the maximum number of channels oggdec: fix faulty cleanup prototype qdm2: check that the FFT size is a power of 2 ... Conflicts: Doxyfile RELEASE VERSION libavformat/matroskadec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 79381ab485..d90047b199 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1897,7 +1897,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
}
@@ -2739,6 +2739,7 @@ void avformat_free_context(AVFormatContext *s)
av_free_packet(&st->cur_pkt);
}
av_dict_free(&st->metadata);
+ av_freep(&st->probe_data.buf);
av_freep(&st->index_entries);
av_freep(&st->codec->extradata);
av_freep(&st->codec->subtitle_header);