FFmpeg/libavformat
Dale Curtis b40b3ddcfc Don't manipulate duration when it's AV_NOPTS_VALUE.
This leads to signed integer overflow.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit c5fd57f483)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-12-02 00:14:19 +01:00
..
4xm.c
a64.c
aacdec.c
ac3dec.c
act.c Merge commit 'd80811c94e068085aab797f9ba35790529126f85' 2015-11-26 01:38:17 +01:00
adp.c
adtsenc.c
adxdec.c avformat/adxdec: check avctx->channels for invalid values 2015-03-29 03:34:22 +02:00
aea.c
afc.c
aiff.h
aiffdec.c
aiffenc.c
allformats.c avformat/allformats: Making av_register_all() thread-safe. 2017-08-23 13:15:16 +02:00
amr.c
anm.c
apc.c
ape.c
apetag.c Merge commit 'b45ab61b24a8f2aeafdd4451491b1b30b7875ee5' into release/2.4 2014-09-18 01:04:25 +02:00
apetag.h
aqtitledec.c
asf.c
asf.h
asfcrypt.c
asfcrypt.h
asfdec.c avformat/asfdec: Fix DoS in asf_build_simple_index() 2017-09-08 18:37:43 +02:00
asfenc.c avformat/asfenc: Check pts 2016-01-31 00:25:20 +01:00
assdec.c assdec: check av_new_packet return value 2015-01-13 00:05:39 +01:00
assenc.c avformat/assenc: honor ReadOrder 2014-09-13 23:02:51 +02:00
ast.c
ast.h
astdec.c
astenc.c
au.c
audiointerleave.c Merge commit '7c710c38f6481b892e01d3c1e4781ad160b2935e' into release/2.4 2015-01-18 01:19:11 +01:00
audiointerleave.h
avc.c
avc.h
avformat.h avformat: Document urls a bit 2016-02-01 02:12:22 +01:00
avformatres.rc
avi.h
avidec.c avformat/avidec: Limit formats in gab2 to srt and ass/ssa 2017-08-23 13:15:17 +02:00
avienc.c
avio_internal.h
avio.c avformat/avio: Limit url option parsing to the documented cases 2016-02-01 02:12:21 +01:00
avio.h
aviobuf.c avformat/aviobuf: Fix signed integer overflow in avio_seek() 2017-08-24 12:08:09 +02:00
avisynth.c
avlanguage.c
avlanguage.h
avr.c
avs.c
bethsoftvid.c
bfi.c
bink.c bink: check vst->index_entries before using it 2015-04-25 15:06:54 +02:00
bintext.c
bit.c avformat/bit: only accept the g729 codec and 1 channel 2015-03-29 03:34:22 +02:00
bluray.c
bmv.c
boadec.c
brstm.c brstm: fix missing closing brace 2016-01-28 02:15:49 +01:00
c93.c
cache.c
caf.c
caf.h
cafdec.c
cafenc.c
cavsvideodec.c
cdg.c
cdxl.c avformat/cdxl: Fix integer overflow of image_size 2015-01-09 17:18:40 +01:00
cinedec.c avformat/cinedec: Fix DoS due to lack of eof check 2017-08-28 01:42:26 +02:00
concat.c avformat/concat: Check protocol prefix 2016-02-01 02:12:22 +01:00
concatdec.c avformat/concatdec: set safe mode to enabled instead of auto 2017-08-23 13:15:16 +02:00
crcenc.c
crypto.c
cutils.c
data_uri.c
dauddec.c
daudenc.c
dfa.c avformat/dfa: use avio_feof() 2014-08-30 15:50:22 +00:00
diracdec.c
dnxhddec.c
dsfdec.c
dsicin.c
dtsdec.c avformat/dtsdec: dts_probe: check reserved bit, check lfe, check sr_code similarity 2014-11-20 01:29:20 +01:00
dtshddec.c
dump.c avformat/dump: Fix integer overflow in av_dump_format() 2015-12-06 12:40:50 +01:00
dv.c
dv.h
dvenc.c
dxa.c Merge commit 'd80811c94e068085aab797f9ba35790529126f85' 2015-11-26 01:38:17 +01:00
eacdata.c
electronicarts.c
epafdec.c
ffm.h
ffmdec.c ffmdec: reset packet_end in case of failure 2016-01-28 02:15:49 +01:00
ffmenc.c
ffmeta.h
ffmetadec.c
ffmetaenc.c
file_open.c
file.c
filmstripdec.c
filmstripenc.c
flac_picture.c
flac_picture.h
flacdec.c avformat/flacdec: Check avio_read result when reading flac block header. 2017-08-23 13:15:16 +02:00
flacenc_header.c
flacenc.c avformat/flacenc: Check length in flac_write_block_comment() 2015-06-01 23:25:20 +02:00
flacenc.h
flic.c
flv.h
flvdec.c avformat/flvdec: Increase string array size 2015-01-09 17:18:40 +01:00
flvenc.c avformat/flvenc: check that the codec_tag fits in the available bits 2015-03-29 03:34:22 +02:00
format.c avformat/format: Fix registering a format more than once and related races 2017-08-23 13:15:16 +02:00
framecrcenc.c
framehash.c
frmdec.c
ftp.c
g722.c
g723_1.c
g729dec.c
gif.c
gifdec.c
golomb_tab.c
gopher.c
gsmdec.c
gxf.c avformat/gxf: Use 64bit for res to avoid overflow 2015-03-29 03:34:21 +02:00
gxf.h
gxfenc.c
h261dec.c
h263dec.c
h264dec.c
hdsenc.c Merge commit '19fc283dbb53a5f7d6658fd4edcfa59b99369b58' into release/2.4 2015-01-18 01:22:14 +01:00
hevc.c avformat/hevc: Check num_long_term_ref_pics_sps to avoid potentially long loops 2015-08-24 14:47:04 +02:00
hevc.h
hevcdec.c
hls.c avformat/hls: Fix DoS due to infinite loop 2017-08-28 01:41:39 +02:00
hlsenc.c avformat/hlsenc: Free context after hls_append_segment 2014-11-30 21:40:36 +01:00
hlsproto.c
hnm.c
http.c avformat/http: Check for truncated buffers in http_connect() 2017-08-23 13:15:16 +02:00
http.h
httpauth.c avformat/httpauth: Add space after commas in HTTP/RTSP auth header 2015-12-06 12:40:49 +01:00
httpauth.h
icecast.c Merge commit 'e10028431d5cd90db7b2a4b0d16721bb1a6d75e3' into release/2.4 2015-02-28 19:19:52 +01:00
icodec.c
icoenc.c
id3v1.c
id3v1.h
id3v2.c avformat/id3v2: Fix "warning: unused variable uncompressed_buffer_size" if zlib is unavailable 2014-08-30 12:21:07 +02:00
id3v2.h
id3v2enc.c
idcin.c avformat/idcin: Use 64bit for ret to avoid overflow 2015-03-29 03:34:21 +02:00
idroqdec.c avformat/idroqdec: Check chunk_size for being too large 2017-08-23 13:15:16 +02:00
idroqenc.c
iff.c
ilbc.c
img2_alias_pix.c avformat/img2_alias_pix: Add AVClass and image2 AVOptions 2014-09-11 15:34:13 +02:00
img2_brender_pix.c avformat/img2_alias & brender_pix: fix function names 2014-09-11 15:16:24 +02:00
img2.c
img2.h avformat/img2: Make AVOptions available to img* demuxers defined in other files 2014-09-11 15:10:15 +02:00
img2dec.c lavf/img2dec: Fix memory leak 2015-10-09 22:07:29 +02:00
img2enc.c
ingenientdec.c
internal.h Merge commit '19fc283dbb53a5f7d6658fd4edcfa59b99369b58' into release/2.4 2015-01-18 01:22:14 +01:00
ipmovie.c avformat/ipmovie: put video decoding_map_size into packet and use it in decoder 2016-01-28 02:09:52 +01:00
ircam.c
ircam.h
ircamdec.c
ircamenc.c
isom.c
isom.h mov: Add an option to toggle dref opening 2016-02-01 02:13:24 +01:00
iss.c
iv8.c
ivfdec.c
ivfenc.c
jacosubdec.c
jacosubenc.c
jvdec.c jvdec: avoid unsigned overflow in comparison 2015-11-26 01:38:17 +01:00
latmenc.c
libavformat.v
libgme.c
libmodplug.c Add missing "const" all over the place. 2014-08-29 18:57:25 +02:00
libnut.c
libquvi.c
librtmp.c avformat/librtmp: fix swfurl 2015-01-18 02:38:01 +01:00
libsmbclient.c
libssh.c
lmlm4.c
loasdec.c
log2_tab.c
lrc.c
lrc.h
lrcdec.c
lrcenc.c
lvfdec.c
lxfdec.c
m4vdec.c avformat/m4vdec: Check for non startcode 00 00 00 sequences in probe 2014-09-07 16:39:39 +02:00
Makefile rtpdec: HEVC/H.265 support 2014-09-03 02:39:24 +02:00
matroska.c avformat: remove FF_API_ASS_SSA dead code 2014-09-09 21:34:23 +02:00
matroska.h avformat: drop redundant MATROSKA_VIDEO_STEREO_MODE_COUNT identifier 2014-08-29 01:26:52 +02:00
matroskadec.c lavf/matroskadec: fix is_keyframe for early Blocks 2017-08-23 13:15:16 +02:00
matroskaenc.c avformat/matroskaenc: Check ff_vorbiscomment_length in put_flac_codecpriv() 2015-06-01 23:25:20 +02:00
md5enc.c
md5proto.c
metadata.c
metadata.h
mgsts.c
microdvddec.c
microdvdenc.c
mkvtimestamp_v2.c
mlvdec.c mlvdec: check that index_entries exist 2015-12-20 16:13:48 +01:00
mm.c
mmf.c
mms.c
mms.h
mmsh.c
mmst.c
mov_chan.c mov: abort on EOF in ff_mov_read_chan 2015-08-20 14:29:12 +02:00
mov_chan.h
mov.c avformat/mov: Fix signed integer overflows with total_size 2017-08-24 12:03:54 +02:00
movenc.c avformat/movenc: workaround bug in "PathScale EKOPath(tm) Compiler Suite Version 4.0.12.1" 2015-01-10 05:02:19 +01:00
movenc.h
movenchint.c
mp3dec.c Merge commit '78a3a4580c5a547af4ae8682c662ea3a4699a599' into release/2.4 2015-05-19 20:25:58 +02:00
mp3enc.c mp3enc: fix a triggerable assert 2014-11-14 20:22:40 +01:00
mpc8.c avformat/mpc8: Use uint64_t in *_get_v() to avoid undefined behavior 2015-02-13 20:48:08 +01:00
mpc.c
mpeg.c avformat/mpeg: Adjust vid probe threshold to correct mis-detection 2017-08-23 13:15:16 +02:00
mpeg.h
mpegenc.c mpegenc: prevent a NULL pointer dereference 2015-01-13 00:16:40 +01:00
mpegts.c avformat/mpegts: Do not trust BSSD descriptor, it is sometimes not an S302M stream 2017-08-23 13:15:16 +02:00
mpegts.h
mpegtsenc.c mpegencts: Fix overflow in cbr mode period calculations 2015-12-06 12:40:51 +01:00
mpegvideodec.c
mpjpeg.c
mpl2dec.c
mpsubdec.c
msnwc_tcp.c
mtv.c Merge commit '242fc6394fecb403bcbd0f652920f2647d0b08ae' into release/2.4 2015-01-18 01:40:01 +01:00
mux.c avformat/mux: Update sidedata in ff_write_chained() 2015-08-20 14:38:28 +02:00
mvdec.c avformat/mvdec: Fix DoS due to lack of eof check 2017-08-28 01:43:31 +02:00
mvi.c
mxf.c
mxf.h
mxfdec.c avformat/mxfdec: Fix Sign error in mxf_read_primer_pack() 2017-09-01 03:20:57 +02:00
mxfenc.c avformat/mxfenc: Do not crash if there is no packet in the first stream 2016-01-31 00:25:19 +01:00
mxg.c
ncdec.c
network.c
network.h
nistspheredec.c
noproxy-test.c
nsvdec.c avformat/nsvdec: Fix DoS due to lack of eof check in nsvs_file_offset loop. 2017-09-01 03:03:47 +02:00
nullenc.c
nut.c
nut.h nutdec: fix infinite resync loops 2015-06-01 23:25:19 +02:00
nutdec.c nutdec: reject negative value_len in read_sm_data 2015-12-20 16:13:44 +01:00
nutenc.c
nuv.c nuv: sanitize negative fps rate 2015-12-20 16:14:07 +01:00
oggdec.c Close ogg stream upon error when using AV_EF_EXPLODE. 2017-11-21 03:33:53 +01:00
oggdec.h avformat/oggdec: Fix integer overflow with invalid pts 2017-08-23 13:15:16 +02:00
oggenc.c avformat/oggenc: Check segments_count for headers too 2015-10-09 22:10:29 +02:00
oggparsecelt.c avformat/oggparsecelt: Do not re-allocate os->private 2017-08-23 13:15:18 +02:00
oggparsedirac.c oggparsedirac: check return value of init_get_bits 2015-08-20 14:38:27 +02:00
oggparseflac.c
oggparseogm.c
oggparseopus.c avformat/oggparseopus: Fix Undefined behavior in oggparseopus.c and libavformat/utils.c 2017-08-23 13:15:16 +02:00
oggparseskeleton.c
oggparsespeex.c avformat/oggparsespeex: Check frames_per_packet and packet_size 2017-08-23 13:15:16 +02:00
oggparsetheora.c
oggparsevorbis.c
oggparsevp8.c Don't manipulate duration when it's AV_NOPTS_VALUE. 2017-12-02 00:14:19 +01:00
oma.c
oma.h
omadec.c avformat/omadec: Use 64bit for ret to avoid overflow 2015-03-29 03:34:21 +02:00
omaenc.c
options_table.h avformat/options_table: Add missing identifier for very strict compliance 2017-08-23 13:15:16 +02:00
options.c
os_support.c
os_support.h
paf.c
pcm.c
pcm.h
pcmdec.c
pcmenc.c
pjsdec.c
pmpdec.c
psxstr.c
pva.c
pvfdec.c
qcp.c
qtpalette.h
r3d.c
rawdec.c rawdec: fix mjpeg probing buffer size check 2015-08-20 14:38:28 +02:00
rawdec.h
rawenc.c
rawenc.h
rawvideodec.c
rdt.c Merge commit '036f5c5420e4529f05fa5180f5fa28ca2c5c4065' into release/2.4 2015-01-18 00:25:10 +01:00
rdt.h
realtextdec.c avformat/realtextdec: UTF-16 support 2014-09-05 23:13:07 +02:00
redspark.c
replaygain.c
replaygain.h
riff.c Support decoding of ImageJ png in avi. 2014-09-02 12:02:03 +02:00
riff.h Merge commit 'd80811c94e068085aab797f9ba35790529126f85' 2015-11-26 01:38:17 +01:00
riffdec.c riffdec: prevent negative bit rate 2015-11-26 01:38:17 +01:00
riffenc.c avformat/riffenc: Filter out "BottomUp" in ff_put_bmp_header() 2014-10-04 23:52:28 +02:00
rl2.c avformat/rl2: Fix DoS due to lack of eof check 2017-08-28 01:43:06 +02:00
rm.c
rm.h Merge commit '036f5c5420e4529f05fa5180f5fa28ca2c5c4065' into release/2.4 2015-01-18 00:25:10 +01:00
rmdec.c Merge commit '4cd0041d38664adcb6f4b3038e277631b85d5dc8' into release/2.4 2015-01-18 01:04:15 +01:00
rmenc.c Merge commit '2ef2f60b4f0308d1c871091c9c1a9641d14ec585' into release/2.4 2015-03-09 01:36:01 +01:00
rmsipr.c
rmsipr.h
rpl.c
rsd.c avformat/rsd: make tag_buf string larger 2014-12-19 18:02:13 -03:00
rso.c
rso.h
rsodec.c
rsoenc.c
rtmp.h
rtmpcrypt.c rtmpcrypt: Do the xtea decryption in little endian mode 2015-12-06 12:40:50 +01:00
rtmpcrypt.h
rtmpdh.c
rtmpdh.h
rtmphttp.c
rtmppkt.c avformat/rtmppkt: Convert ff_amf_get_field_value() to bytestream2 2017-08-23 13:15:18 +02:00
rtmppkt.h
rtmpproto.c
rtp.c
rtp.h
rtpdec_amr.c
rtpdec_asf.c libavformat/rtpdec_asf: zero initialize the AVIOContext struct 2017-08-23 13:15:16 +02:00
rtpdec_formats.h rtpdec: HEVC/H.265 support 2014-09-03 02:39:24 +02:00
rtpdec_g726.c
rtpdec_h261.c
rtpdec_h263_rfc2190.c Merge commit 'cbf31d5f15774b3ffd1e2009159dc7154a767b09' into release/2.4 2015-01-17 23:23:27 +01:00
rtpdec_h263.c
rtpdec_h264.c
rtpdec_hevc.c Merge commit '95e177eeb21f3e968aa9353bc69d1946966cc835' 2014-09-03 14:56:53 +02:00
rtpdec_ilbc.c
rtpdec_jpeg.c avformat/rtpdec_jpeg: fix low contrast image on low quality setting 2017-08-23 13:15:16 +02:00
rtpdec_latm.c
rtpdec_mpeg4.c
rtpdec_mpeg12.c
rtpdec_mpegts.c
rtpdec_qcelp.c
rtpdec_qdm2.c
rtpdec_qt.c avformat/rtpdec_qt: Fix 'warning: passing argument 2 of ffio_init_context discards const qualifier from pointer target type' 2014-09-08 16:56:19 +02:00
rtpdec_svq3.c
rtpdec_vp8.c
rtpdec_xiph.c avformat/rtpdec_xiph: Check upper bound on len in xiph_handle_packet() 2015-06-01 23:25:20 +02:00
rtpdec.c rtpdec: HEVC/H.265 support 2014-09-03 02:39:24 +02:00
rtpdec.h
rtpenc_aac.c
rtpenc_amr.c
rtpenc_chain.c
rtpenc_chain.h
rtpenc_h261.c
rtpenc_h263_rfc2190.c
rtpenc_h263.c
rtpenc_h264.c
rtpenc_jpeg.c avformat/rtpenc_jpeg: Check remaining buffer size for SOS 2015-06-01 23:25:20 +02:00
rtpenc_latm.c
rtpenc_mpv.c
rtpenc_vp8.c
rtpenc_xiph.c
rtpenc.c avformat/rtpenc: Fix integer overflow in NTP_TO_RTP_FORMAT 2017-08-23 13:15:16 +02:00
rtpenc.h
rtpproto.c
rtpproto.h
rtsp.c Merge commit 'f77c9d71615e17414aacbb1720693b800a5a32d3' into release/2.4 2015-05-19 20:50:54 +02:00
rtsp.h
rtspcodes.h Add missing "const" all over the place. 2014-08-29 18:57:25 +02:00
rtspdec.c
rtspenc.c
samidec.c avformat/samidec: UTF-16 support 2014-09-05 23:13:07 +02:00
sapdec.c
sapenc.c
sauce.c
sauce.h
sbgdec.c
sctp.c
sdp.c sdp: add support for H.261 2014-10-04 23:52:29 +02:00
sdr2.c
seek-test.c
seek.c
seek.h
segafilm.c
segment.c Merge commit 'f6c82b34a320f105af266997f5951cbe7dfc8a05' into release/2.4 2015-01-17 22:56:52 +01:00
sierravmd.c
siff.c
smacker.c avformat/smacker: fix integer overflow with pts_inc 2015-12-06 12:40:51 +01:00
smjpeg.c
smjpeg.h
smjpegdec.c
smjpegenc.c
smoothstreamingenc.c Merge commit '19fc283dbb53a5f7d6658fd4edcfa59b99369b58' into release/2.4 2015-01-18 01:22:14 +01:00
smush.c
sol.c
sox.h
soxdec.c
soxenc.c
spdif.c
spdif.h
spdifdec.c
spdifenc.c
srtdec.c avformat/srtdec: speed up probing 2014-09-05 23:13:08 +02:00
srtenc.c
srtp.c
srtp.h
srtpproto.c
subfile.c
subtitles.c avformat/subtitles: Use size_t for len 2015-06-01 23:25:20 +02:00
subtitles.h avformat/subtitles: Use size_t for len 2015-06-01 23:25:20 +02:00
subviewer1dec.c
subviewerdec.c
swf.c
swf.h
swfdec.c avformat/swfdec: Fix inflate() error code check 2017-08-23 13:15:16 +02:00
swfenc.c
takdec.c
tcp.c
tedcaptionsdec.c
tee.c
thp.c avformat/thp: Check av_get_packet() for failure not only for partial output 2015-02-13 20:48:08 +01:00
tiertexseq.c
tls.c
tmv.c
tta.c avformat/tta: fix crash with corrupted files 2015-02-13 20:48:08 +01:00
tty.c
txd.c
udp.c avformat/udp: Move variables used only with HAVE_PTHREAD_CANCEL, under the #if 2014-08-30 12:43:58 +02:00
uncodedframecrcenc.c
unix.c
url-test.c
url.c avformat/url: Use size_t for len from strlen() 2015-06-01 23:25:20 +02:00
url.h
urldecode.c
urldecode.h
utils.c avformat/utils: Prevent undefined shift with wrap_bits > 64. 2017-12-02 00:11:07 +01:00
vc1test.c
vc1testenc.c
version.h avformat: remove FF_API_ASS_SSA dead code 2014-09-09 21:34:23 +02:00
vivo.c
voc.c
voc.h
vocdec.c
vocenc.c
vorbiscomment.c avformat/vorbiscomment: Check entry length in ff_vorbiscomment_write() 2015-06-01 23:25:20 +02:00
vorbiscomment.h
vplayerdec.c
vqf.c avformat/vqf: Use 64bit for ret to avoid overflow 2015-03-29 03:34:21 +02:00
w64.c
w64.h
wavdec.c avformat/wavdec: Check chunk_size 2017-08-23 13:15:17 +02:00
wavenc.c
wc3movie.c
webmdashenc.c avformat/webmdashenc: Validate the 'streams' adaptation sets parameter 2017-08-23 13:15:17 +02:00
webvttdec.c
webvttenc.c lavf/webvttenc: Require webvtt file to contain exactly one WebVTT stream. 2015-12-06 12:40:49 +01:00
westwood_aud.c
westwood_vqa.c
wtv_common.c
wtv.h
wtvdec.c Merge commit 'd80811c94e068085aab797f9ba35790529126f85' 2015-11-26 01:38:17 +01:00
wtvenc.c
wv.c
wv.h
wvdec.c
wvenc.c
xa.c
xmv.c avformat/xmv: Discard remainder of packet on error 2015-12-06 12:40:49 +01:00
xwma.c Merge commit 'd80811c94e068085aab797f9ba35790529126f85' 2015-11-26 01:38:17 +01:00
yop.c
yuv4mpeg.h
yuv4mpegdec.c
yuv4mpegenc.c