ffmpeg/libavformat
Xi Wang 64b7e7dcaf cafdec: fix overflow checking in read_header()
Several compilers such as clang/icc/pathscale will optimize the check
pos + size < pos (assuming size > 0) into false, since signed integer
overflow is undefined behavior in C.  This breaks overflow checking.
Use a safe precondition check instead.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-01-20 21:30:34 +01:00
..
4xm.c
Makefile Merge commit '0eecafc948b74c247ebbc59f18f508db5d590d0b' 2013-01-16 12:07:27 +01:00
a64.c
aacdec.c
ac3dec.c
act.c
adtsenc.c
adxdec.c
aea.c
afc.c
aiff.h
aiffdec.c aiffdec: set block duration for QDM2 2013-01-01 17:03:22 +00:00
aiffenc.c aiffenc: metadata support 2013-01-03 19:35:02 +00:00
allformats.c Merge commit '2f3bada63e57345329c4f9b48e9b81b5cfc03d05' 2013-01-15 16:05:34 +01:00
amr.c
anm.c
apc.c
ape.c
apetag.c
apetag.h
apetagenc.c
aqtitledec.c Add AQTitle subtitles demuxer. 2012-12-30 23:37:14 +01:00
asf.c
asf.h
asfcrypt.c
asfcrypt.h
asfdec.c Merge commit '9a00374cb4512a58a1fee366b850dfa87c76e1f3' 2013-01-08 12:34:14 +01:00
asfenc.c
assdec.c 10l: export ff_bprint_to_extradata between libs using avpriv_ prefix. 2012-12-30 22:54:56 +01:00
assenc.c
ast.c
ast.h
astdec.c
astenc.c astenc: Enable the loop flag only when needed 2013-01-05 17:07:42 +01:00
au.c au: switch to ff_pcm_read_packet() again, after the merge 2013-01-11 15:18:58 +01:00
audiointerleave.c
audiointerleave.h
avc.c
avc.h
avformat.h Add a new function av_codec_get_tag2(). 2013-01-17 20:44:33 +01:00
avi.h
avidec.c
avienc.c
avio.c
avio.h
avio_internal.h
aviobuf.c Merge remote-tracking branch 'qatar/master' 2013-01-04 13:29:15 +01:00
avisynth.c
avlanguage.c
avlanguage.h
avr.c
avs.c
bethsoftvid.c
bfi.c
bink.c
bintext.c
bit.c
bluray.c
bmv.c
brstm.c
c93.c
cache.c
caf.c
caf.h
cafdec.c cafdec: fix overflow checking in read_header() 2013-01-20 21:30:34 +01:00
cafenc.c
cavsvideodec.c
cdg.c
cdxl.c
concat.c
concatdec.c
crcenc.c
crypto.c
cutils.c
data_uri.c lavf: add data: URI scheme. 2013-01-01 19:29:04 +01:00
daud.c
dfa.c
diracdec.c
dnxhddec.c
dsicin.c
dtsdec.c
dtshddec.c
dv.c
dv.h
dvenc.c
dxa.c
eacdata.c
electronicarts.c
epafdec.c
ffm.h
ffmdec.c
ffmenc.c
ffmeta.h
ffmetadec.c
ffmetaenc.c
file.c
filmstripdec.c
filmstripenc.c
flacdec.c
flacenc.c
flacenc.h
flacenc_header.c
flic.c
flv.h
flvdec.c
flvenc.c
framecrcenc.c
framehash.c
frmdec.c frmdec: do not abuse ff_codec_get_id() 2013-01-12 14:39:13 +00:00
g722.c
g723_1.c
g729dec.c
gif.c
gifdec.c
gopher.c
gsmdec.c
gxf.c
gxf.h
gxfenc.c
h261dec.c
h263dec.c
h264dec.c
hls.c
hlsenc.c Merge commit '92e354b655613b88c3c202a7e19e7037daed37eb' 2013-01-09 11:26:31 +01:00
hlsproto.c
http.c lavf/http: add HTTP protocol cookie support 2013-01-15 22:26:30 +01:00
http.h
httpauth.c
httpauth.h
icodec.c
icoenc.c
id3v1.c Add a comment about an intentional misspelling to the id3v1 tags. 2013-01-04 10:32:39 +01:00
id3v1.h
id3v2.c lavf/id3v2: seek back to previous offset if header size is not matched 2013-01-20 04:39:56 +01:00
id3v2.h
id3v2enc.c
idcin.c Merge remote-tracking branch 'qatar/master' 2013-01-17 13:44:37 +01:00
idroqdec.c
idroqenc.c
iff.c iff: support seeking with maud 2013-01-07 10:19:49 +00:00
ilbc.c
img2.c
img2dec.c img2dec: fix -loop 2013-01-08 20:07:16 +01:00
img2enc.c
ingenientdec.c
internal.h Support more AVC-Intra files 2013-01-03 21:48:38 +01:00
ipmovie.c
ircam.c
ircam.h
ircamdec.c
ircamenc.c
isom.c Add EVRCA and SMV codec id 2013-01-07 11:43:20 +00:00
isom.h lavf/mov: simplify timecode track ref. 2013-01-01 16:20:10 +01:00
iss.c
iv8.c
ivfdec.c
ivfenc.c
jacosubdec.c lavf: remove generic index flag from text subtitles. 2013-01-02 10:32:21 +01:00
jacosubenc.c
jvdec.c
latmenc.c latmenc: Check for LOAS sync word 2013-01-17 04:55:14 +01:00
libavformat.v lavf: remove nonexistent symbols 2013-01-11 10:07:52 +00:00
libmodplug.c
libnut.c
librtmp.c
lmlm4.c
loasdec.c
log2_tab.c
lvfdec.c
lxfdec.c
m4vdec.c
matroska.c lafv/matroska: add A_OPUS/EXPERIMENTAL codec name. 2013-01-16 15:53:01 +01:00
matroska.h
matroskadec.c Merge commit '7b8c5b263bc680eff5710bee5994de39d47fc15e' 2013-01-11 13:01:07 +01:00
matroskaenc.c lavf/matroskaenc: respect bitexact for attachments. 2013-01-01 19:43:21 +01:00
md5enc.c
md5proto.c
metadata.c
metadata.h
mgsts.c
microdvddec.c lavf: remove generic index flag from text subtitles. 2013-01-02 10:32:21 +01:00
microdvdenc.c
mkvtimestamp_v2.c
mm.c
mmf.c Support stereo as experimental feature in mmf / Yamaha SMAF. 2013-01-06 16:38:24 +01:00
mms.c
mms.h
mmsh.c
mmst.c
mov.c Support more AVC-Intra files 2013-01-03 21:48:38 +01:00
mov_chan.c
mov_chan.h
movenc.c
movenc.h
movenchint.c
mp3dec.c
mp3enc.c
mpc.c
mpc8.c
mpeg.c Only skip MLP header in mpeg files if the codec actually is MLP. 2013-01-17 17:19:08 +01:00
mpeg.h
mpegenc.c mpegpsenc: avoid shifting dts/pts 2013-01-04 20:58:59 +01:00
mpegts.c
mpegts.h
mpegtsenc.c lavf/mpegtsenc: fix missing word in error message. 2013-01-03 00:04:41 +01:00
mpegvideodec.c
mpjpeg.c
mpl2dec.c Add MPL2 subtitles demuxer and decoder. 2012-12-30 22:37:25 +01:00
mpsubdec.c Add MPlayer subtitles demuxer. 2012-12-30 23:09:49 +01:00
msnwc_tcp.c
mtv.c
mux.c mux/chunked interleaver: better align duration chunks. 2013-01-17 15:11:02 +01:00
mvdec.c
mvi.c
mxf.c
mxf.h
mxfdec.c mxfdec: Fix integer overflow with many channels 2013-01-11 17:42:04 +01:00
mxfenc.c mxfenc: avoid depending on private codec structures and functions 2013-01-06 14:08:08 +01:00
mxg.c
ncdec.c
network.c
network.h
nistspheredec.c
nsvdec.c
nullenc.c
nut.c Merge commit '3f111804eb5c603a344706b84b7164cbf7b4e0df' 2013-01-15 14:57:57 +01:00
nut.h
nutdec.c nutdec: Always return a value from nut_read_timestamp() 2013-01-15 02:15:09 +01:00
nutenc.c
nuv.c
oggdec.c oggdec: Support chained streams, support replacing streams in multistream files. 2013-01-20 17:53:51 +01:00
oggdec.h oggdec: resync from the last page. 2013-01-15 20:19:28 +01:00
oggenc.c Merge remote-tracking branch 'qatar/master' 2013-01-09 12:30:14 +01:00
oggparsecelt.c
oggparsedirac.c
oggparseflac.c
oggparseogm.c
oggparseopus.c
oggparseskeleton.c oggparseskeleton: Check the overall start time before using it. 2013-01-08 02:58:01 +01:00
oggparsespeex.c
oggparsetheora.c oggparsetheora: fix comment header parsing 2013-01-14 20:47:27 +02:00
oggparsevorbis.c oggdec: fix faulty cleanup prototype 2013-01-09 21:07:48 +01:00
oma.c
oma.h
omadec.c
omaenc.c
options.c
options_table.h lavf: clarify/extend documentation for AVFormatContext::analyzeduration 2013-01-13 15:09:09 +01:00
os_support.c
os_support.h
paf.c
pcm.c
pcm.h
pcmdec.c
pcmenc.c
pjsdec.c Add PJS subtitles demuxer and decoder. 2012-12-30 23:55:28 +01:00
pmpdec.c
psxstr.c
pva.c
pvfdec.c
qcp.c Add EVRCA and SMV codec id 2013-01-07 11:43:20 +00:00
qtpalette.h
r3d.c
rawdec.c
rawdec.h
rawenc.c
rawenc.h
rawvideodec.c
rdt.c
rdt.h
realtextdec.c lavf: remove generic index flag from text subtitles. 2013-01-02 10:32:21 +01:00
riff.c Merge commit '80ac87c13dc8c6c063e26a464c5c542357c0583f' 2013-01-18 13:36:39 +01:00
riff.h
rl2.c
rm.c
rm.h
rmdec.c rmdec: Limit videobufsize to remaining amount of data 2013-01-07 21:35:52 +01:00
rmenc.c
rmsipr.c
rmsipr.h
rpl.c
rso.c
rso.h
rsodec.c
rsoenc.c
rtmp.h
rtmpcrypt.c
rtmpcrypt.h
rtmpdh.c
rtmpdh.h
rtmphttp.c
rtmppkt.c Merge commit '33f28a3be3092f642778253d9529dd66fe2a014a' 2013-01-01 13:54:22 +01:00
rtmppkt.h Merge commit '33f28a3be3092f642778253d9529dd66fe2a014a' 2013-01-01 13:54:22 +01:00
rtmpproto.c rtmpproto: Fix assignments in if() 2013-01-14 13:13:00 +02:00
rtp.c Merge commit 'c44784c9bb9d0ddf5d39d0dfa640816a57b8f457' 2013-01-12 13:00:50 +01:00
rtp.h
rtpdec.c rtpdec: support CSRC 2013-01-15 16:20:31 +01:00
rtpdec.h Merge commit '2f3bada63e57345329c4f9b48e9b81b5cfc03d05' 2013-01-15 16:05:34 +01:00
rtpdec_amr.c
rtpdec_asf.c
rtpdec_formats.h
rtpdec_g726.c
rtpdec_h263.c
rtpdec_h263_rfc2190.c
rtpdec_h264.c
rtpdec_ilbc.c
rtpdec_jpeg.c
rtpdec_latm.c
rtpdec_mpeg4.c Merge remote-tracking branch 'qatar/master' 2013-01-16 12:38:41 +01:00
rtpdec_qcelp.c
rtpdec_qdm2.c
rtpdec_qt.c
rtpdec_svq3.c
rtpdec_vp8.c Merge remote-tracking branch 'qatar/master' 2013-01-10 13:07:25 +01:00
rtpdec_xiph.c
rtpenc.c
rtpenc.h
rtpenc_aac.c
rtpenc_amr.c
rtpenc_chain.c
rtpenc_chain.h
rtpenc_h263.c
rtpenc_h263_rfc2190.c
rtpenc_h264.c
rtpenc_jpeg.c
rtpenc_latm.c
rtpenc_mpv.c
rtpenc_vp8.c
rtpenc_xiph.c
rtpproto.c
rtsp.c Merge commit '2f3bada63e57345329c4f9b48e9b81b5cfc03d05' 2013-01-15 16:05:34 +01:00
rtsp.h Merge commit '2f3bada63e57345329c4f9b48e9b81b5cfc03d05' 2013-01-15 16:05:34 +01:00
rtspcodes.h
rtspdec.c
rtspenc.c
samidec.c lavf: remove generic index flag from text subtitles. 2013-01-02 10:32:21 +01:00
sapdec.c
sapenc.c
sauce.c
sauce.h
sbgdec.c
sctp.c
sdp.c Merge commit '094a7405e5d8463d7d167d893e04934ec1a84ecd' 2013-01-15 16:12:24 +01:00
seek-test.c
seek.c
seek.h
segafilm.c
segment.c lavf/segment: do not auto-select a video stream with attached_pic disposition 2013-01-19 00:32:08 +01:00
sierravmd.c
siff.c
smacker.c
smjpeg.c
smjpeg.h
smjpegdec.c
smjpegenc.c
smoothstreamingenc.c
smush.c
sol.c
sox.h
soxdec.c
soxenc.c
spdif.c
spdif.h Support decoding AC-3 in wav. 2013-01-06 18:48:51 +01:00
spdifdec.c Support decoding AC-3 in wav. 2013-01-06 18:48:51 +01:00
spdifenc.c
srtdec.c lavf: remove generic index flag from text subtitles. 2013-01-02 10:32:21 +01:00
srtenc.c
srtp.c Merge commit '977d4a3b8a2dbc2fb5e747c7072485016c9cdfaa' 2013-01-16 12:13:16 +01:00
srtp.h Merge commit 'ab2ad8bd56882c0ea160b154e8b836eb71abc49d' 2013-01-15 15:57:33 +01:00
srtpproto.c Merge commit '2f3bada63e57345329c4f9b48e9b81b5cfc03d05' 2013-01-15 16:05:34 +01:00
subtitles.c lavf: move stream==-1 handling from ff_subtitles_queue_seek() to avformat_seek_file() 2013-01-02 23:02:33 +01:00
subtitles.h lavf/subtitles: fix CLRF/CRLF typo. 2012-12-30 23:14:34 +01:00
subviewer1dec.c Add SubViewer v1 subtitles demuxer and decoder. 2012-12-31 00:01:58 +01:00
subviewerdec.c subviewer: sanitize packets. 2013-01-03 07:25:47 +01:00
swf.c
swf.h
swfdec.c
swfenc.c
takdec.c
tcp.c
tedcaptionsdec.c
thp.c
tiertexseq.c
tls.c
tmv.c
tta.c
tty.c
txd.c
udp.c
url-test.c
url.h
urldecode.c
urldecode.h
utils.c lavf/utils: provide feedback in case of invalid probe size 2013-01-19 00:13:52 +01:00
vc1test.c
vc1testenc.c
version.h lavf/segment: add support to segment list file entries sliding window listing 2013-01-19 00:22:58 +01:00
vivo.c
voc.c
voc.h
vocdec.c
vocenc.c
vorbiscomment.c
vorbiscomment.h
vplayerdec.c Add VPlayer subtitles demuxer and decoder. 2012-12-30 22:46:42 +01:00
vqf.c
w64.c w64: fact guid support 2013-01-07 10:08:38 +00:00
w64.h w64: fact guid support 2013-01-07 10:08:38 +00:00
wavdec.c w64: fact guid support 2013-01-07 10:08:38 +00:00
wavenc.c w64: fact guid support 2013-01-07 10:08:38 +00:00
wc3movie.c
webvttdec.c lavf/webvtt: use ff_subtitles_read_chunk(). 2013-01-03 07:46:30 +01:00
westwood_aud.c
westwood_vqa.c
wtv.c
wtv.h
wtvdec.c wtvdec: fix integer overflow 2013-01-20 20:59:30 +01:00
wtvenc.c wtvenc: mux thumbnail picture 2013-01-07 23:14:58 +11:00
wv.c
wvenc.c
xa.c
xmv.c
xwma.c xwma: Remove unused variable 2013-01-07 13:25:20 +01:00
yop.c
yuv4mpeg.c Merge commit 'ed79093222ceb42f0c3a39095a69af0b32be5450' 2013-01-10 12:57:08 +01:00