1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-18 03:19:31 +02:00
FFmpeg/libavformat
Michael Niedermayer 0e15b01b4e avformat/thp: Check fps
Fixes: division by zero
Fixes: 23162/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-4856420817436672

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-06-13 00:43:09 +02:00
..
tests
.gitignore
3dostr.c
4xm.c avformat/4xm: Cleanup on GET_LIST_HEADER() failure 2020-06-08 12:27:18 +02:00
a64.c
aacdec.c avformat/id3v2: Remove unnecessary indirection 2020-05-25 07:06:44 +02:00
aadec.c avformat/aadec: Check toc_size to contain the minimum to demuxer uses 2020-05-21 09:31:08 +02:00
ac3dec.c
acm.c
act.c
adp.c
ads.c
adtsenc.c
adxdec.c
aea.c
afc.c
aiff.h
aiffdec.c avformat/id3v2: Remove unnecessary indirection 2020-05-25 07:06:44 +02:00
aiffenc.c avformat/aiffenc: Don't forget chapters 2020-05-25 05:38:15 +02:00
aixdec.c
allformats.c avformat: add kvag muxer 2020-05-31 00:55:12 +02:00
alp.c
amr.c
anm.c
apc.c
ape.c
apetag.c
apetag.h
apm.c
apngdec.c
apngenc.c
aptxdec.c
aqtitledec.c
argo_asf.c
asf.c
asf.h
asfcrypt.c
asfcrypt.h
asfdec_f.c avformat/id3v2: Remove unnecessary indirection 2020-05-25 07:06:44 +02:00
asfdec_o.c avformat/id3v2: Remove unnecessary indirection 2020-05-25 07:06:44 +02:00
asfenc.c
assdec.c
assenc.c
ast.c
ast.h
astdec.c
astenc.c
async.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
au.c
av1.c
av1.h
av1dec.c
avc.c
avc.h
avformat.h avformat/avformat: Remove redundant "NOT PART OF PUBLIC API" 2020-05-23 01:40:05 +02:00
avformatres.rc
avi.h
avidec.c
avienc.c
avio_internal.h
avio.c URLContext: switch to child_class_iterate() 2020-06-10 12:36:44 +02:00
avio.h
aviobuf.c avformat/aviobuf: Also return truncated buffer in avio_get_dyn_buf() 2020-06-11 04:03:38 +02: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
boadec.c
brstm.c
c93.c
cache.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
caf.c
caf.h
cafdec.c
cafenc.c
cavsvideodec.c
cdg.c
cdxl.c
chromaprint.c
cinedec.c
codec2.c
concat.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
concatdec.c avformat/concatdec: Avoid duplicating buffer when adding side-data 2020-05-28 12:01:22 +02:00
crcenc.c
crypto.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
cutils.c
dash.c
dash.h
dashdec.c avformat/dashdec: compute the segment size use current pos minus offset plus one 2020-05-07 19:33:35 +08:00
dashenc.c avformat/dashenc: use AVStream timebase when computing missing bitrate 2020-06-01 18:58:04 +05:30
data_uri.c
dauddec.c
daudenc.c
davs2.c
dcstr.c
derf.c
dfa.c
dhav.c
diracdec.c
dnxhddec.c
dsfdec.c avformat/id3v2: Remove unnecessary indirection 2020-05-25 07:06:44 +02:00
dsicin.c
dss.c
dtsdec.c
dtshddec.c
dump.c lavf/dump: schedule use of deprecated API for removal 2020-06-10 11:35:17 +02:00
dv.c
dv.h
dvbsub.c
dvbtxt.c
dvenc.c
dxa.c
eacdata.c
electronicarts.c
epafdec.c
ffmeta.h
ffmetadec.c
ffmetaenc.c
fifo_test.c
fifo.c avformat/fifo: add timeshift option to delay output 2020-06-09 00:57:30 +02:00
file_open.c
file.c
filmstripdec.c
filmstripenc.c
fitsdec.c
fitsenc.c
flac_picture.c libavformat/flacdec: Workaround for truncated metadata picture size 2020-05-25 11:59:45 +02:00
flac_picture.h libavformat/flacdec: Workaround for truncated metadata picture size 2020-05-25 11:59:45 +02:00
flacdec.c libavformat/flacdec: Workaround for truncated metadata picture size 2020-05-25 11:59:45 +02:00
flacenc_header.c
flacenc.c
flacenc.h
flic.c
flv.h
flvdec.c avformat/flvdec: Avoid duplicating extradata when adding side-data 2020-05-28 11:59:56 +02:00
flvenc.c
format.c
framecrcenc.c
framehash.c
frmdec.c
fsb.c
ftp.c avformat/ftp: Fix for invalid use of av_strtok 2020-05-10 22:32:34 +08:00
fwse.c
g722.c
g723_1.c
g726.c
g729dec.c
gdv.c
genh.c
gif.c
gifdec.c
golomb_tab.c
gopher.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
gsmdec.c
gxf.c
gxf.h
gxfenc.c avformat: implement retiming directly in mxfenc and gxfenc 2020-05-07 23:12:24 +02:00
h261dec.c
h263dec.c
h264dec.c
hashenc.c
hca.c
hcom.c
hdsenc.c
hevc.c
hevc.h
hevcdec.c
hls.c avformat/hls: check segment duration value of EXTINF 2020-06-10 09:22:37 +08:00
hlsenc.c avformat/hlsenc, hlsplaylist: Cosmetics 2020-05-28 11:18:53 +02:00
hlsplaylist.c avformat/hlsenc, hlsplaylist: Cosmetics 2020-05-28 11:18:53 +02:00
hlsplaylist.h avformat/hlsenc, hlsplaylist: Cosmetics 2020-05-28 11:18:53 +02:00
hlsproto.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
hnm.c
http.c avformat/http: increase BUFFER_SIZE to MAX_URL_SIZE + HTTP_HEADERS_SIZE 2020-05-21 22:45:21 +02:00
http.h
httpauth.c
httpauth.h
icecast.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
icodec.c
icoenc.c
id3v1.c
id3v1.h
id3v2.c avformat/id3v2: Remove unnecessary indirection 2020-05-25 07:06:44 +02:00
id3v2.h avformat/id3v2: Remove unnecessary indirection 2020-05-25 07:06:44 +02:00
id3v2enc.c
idcin.c
idroqdec.c
idroqenc.c
iff.c avformat/id3v2: Remove unnecessary indirection 2020-05-25 07:06:44 +02:00
ifv.c
ilbc.c
img2_alias_pix.c
img2_brender_pix.c
img2.c avcodec: add PFM image decoder 2020-05-30 18:02:55 +02:00
img2.h
img2dec.c avformat/img2dec: Avoid duplicating buffer when adding side-data 2020-05-28 12:03:28 +02:00
img2enc.c
ingenientdec.c
internal.h avformat/mux: Set AV_PKT_FLAG_KEY for is_intra_only packet 2020-05-07 07:12:24 +08:00
ip.c
ip.h
ipmovie.c
ircam.c
ircam.h
ircamdec.c
ircamenc.c
isom.c avcodec: add NotchLC decoder 2020-05-19 20:09:25 +02:00
isom.h
iss.c
iv8.c
ivfdec.c
ivfenc.c avformat/ivfenc: move bsf insertion to the init function 2020-05-11 19:41:59 -03:00
jacosubdec.c
jacosubenc.c
jvdec.c
kvag.c avformat: add kvag muxer 2020-05-31 00:55:12 +02:00
latmenc.c
libamqp.c
libavformat.v
libgme.c
libmodplug.c
libopenmpt.c
librtmp.c
libsmbclient.c
libsrt.c
libssh.c
libzmq.c
lmlm4.c
loasdec.c
log2_tab.c
lrc.c
lrc.h
lrcdec.c
lrcenc.c
lvfdec.c
lxfdec.c
m4vdec.c
Makefile avformat: add kvag muxer 2020-05-31 00:55:12 +02:00
matroska.c
matroska.h
matroskadec.c avformat/matroskadec: Beautify matroska_parse_laces() 2020-05-26 06:19:25 +02:00
matroskaenc.c avformat/matroskaenc: Forward errors from avpriv_split_xiph_headers() 2020-05-23 07:10:56 +02:00
md5proto.c
metadata.c
metadata.h
mgsts.c
microdvddec.c
microdvdenc.c
mj2kdec.c
mkvtimestamp_v2.c
mlpdec.c
mlvdec.c avformat/mlvdec: fail reading a packet with 0 streams 2020-06-07 22:01:12 +02:00
mm.c
mmf.c
mms.c
mms.h
mmsh.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
mmst.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
mov_chan.c
mov_chan.h
mov_esds.c
mov.c avformat/mov: Check if DTS is AV_NOPTS_VALUE in mov_find_next_sample(). 2020-06-13 00:43:09 +02:00
movenc.c movenc: Fix accidental leftover duplication from 1aec1fbcc5 2020-05-22 22:00:03 +03:00
movenc.h
movenccenc.c
movenccenc.h
movenchint.c
mp3dec.c Revert "lavf/mp3dec: don't adjust start time; packets are not adjusted." 2020-06-08 22:08:37 +02:00
mp3enc.c
mpc8.c
mpc.c
mpeg.c avformat/mpeg: Decrease score by 1 for files with very little valid data 2020-05-10 01:09:13 +02:00
mpeg.h
mpegenc.c avformat/mpegenc: Fix integer overflow with AV_NOPTS_VALUE 2020-05-21 09:31:08 +02:00
mpegts.c avformat/mpegts: use get_packet_size in mpegts_resync for determining raw_packet_size 2020-05-27 22:36:53 +02:00
mpegts.h avformat/mpegts: add constants for MPEG-TS transport stream identifiers 2020-06-09 01:01:28 +02:00
mpegtsenc.c avformat/mpegts: add constants for MPEG-TS transport stream identifiers 2020-06-09 01:01:28 +02:00
mpegvideodec.c
mpjpeg.c
mpjpegdec.c
mpl2dec.c avformat/mpl2dec: Fix integer overflow with duration 2020-06-13 00:43:09 +02:00
mpsubdec.c
msf.c
msnwc_tcp.c
mtaf.c
mtv.c
musx.c
mux.c avformat/mux: Remove unnecessary unreferencing of AVPacket 2020-05-23 05:43:42 +02:00
mvdec.c
mvi.c
mxf.c
mxf.h
mxfdec.c
mxfenc.c avformat: implement retiming directly in mxfenc and gxfenc 2020-05-07 23:12:24 +02:00
mxg.c
ncdec.c
network.c
network.h
nistspheredec.c
nspdec.c
nsvdec.c
nullenc.c
nut.c
nut.h
nutdec.c
nutenc.c
nuv.c
oggdec.c avformat/oggdec: Do not hardcode arbitrary and sometimes unavailable size 2020-06-07 01:21:55 +02:00
oggdec.h oggdec: remove the oggparsedaala subdemuxer 2020-05-23 19:07:20 +01:00
oggenc.c avformat/oggenc: Avoid allocating and copying when writing page data 2020-05-09 16:18:39 +02:00
oggparsecelt.c
oggparsedirac.c
oggparseflac.c
oggparseogm.c
oggparseopus.c
oggparseskeleton.c
oggparsespeex.c
oggparsetheora.c avformat/oggparsetheora: Don't update start time when lastpts is AV_NOPTS_VALUE. 2020-05-31 00:52:08 +02:00
oggparsevorbis.c avformat/oggdec: Avoid duplicating buffer when adding side-data 2020-05-28 12:04:26 +02:00
oggparsevp8.c
oma.c
oma.h
omadec.c avformat/id3v2: Remove unnecessary indirection 2020-05-25 07:06:44 +02:00
omaenc.c
options_table.h
options.c AVFormatContext: switch to child_class_iterate() 2020-06-10 12:36:44 +02:00
os_support.c
os_support.h
paf.c
pcm.c
pcm.h
pcmdec.c
pcmenc.c
pjsdec.c
pmpdec.c
pp_bnk.c
prompeg.c avformat/prompeg: av_dict_set() -> av_dict_set_int() 2020-06-02 22:25:11 +08:00
protocols.c URLContext: switch to child_class_iterate() 2020-06-10 12:36:44 +02:00
psxstr.c
pva.c
pvfdec.c
qcp.c
qtpalette.c
qtpalette.h
r3d.c
rawdec.c avformat/rawdec: fix identifier names 2020-06-06 00:25:00 +02:00
rawdec.h avformat/rawdec: fix identifier names 2020-06-06 00:25:00 +02:00
rawenc.c
rawenc.h
rawutils.c
rawvideodec.c
rdt.c
rdt.h
realtextdec.c
redspark.c
replaygain.c
replaygain.h
riff.c avcodec: add NotchLC decoder 2020-05-19 20:09:25 +02:00
riff.h
riffdec.c
riffenc.c
rl2.c
rm.c
rm.h
rmdec.c
rmenc.c
rmsipr.c
rmsipr.h
rpl.c
rsd.c
rso.c
rso.h
rsodec.c
rsoenc.c
rtmp.h
rtmpcrypt.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
rtmpcrypt.h
rtmpdh.c
rtmpdh.h
rtmpdigest.c
rtmphttp.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
rtmppkt.c
rtmppkt.h
rtmpproto.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
rtp.c
rtp.h
rtpdec_ac3.c
rtpdec_amr.c
rtpdec_asf.c
rtpdec_dv.c
rtpdec_formats.h
rtpdec_g726.c
rtpdec_h261.c
rtpdec_h263_rfc2190.c
rtpdec_h263.c
rtpdec_h264.c
rtpdec_hevc.c
rtpdec_ilbc.c
rtpdec_jpeg.c
rtpdec_latm.c
rtpdec_mpa_robust.c
rtpdec_mpeg4.c
rtpdec_mpeg12.c
rtpdec_mpegts.c
rtpdec_qcelp.c
rtpdec_qdm2.c
rtpdec_qt.c
rtpdec_rfc4175.c
rtpdec_svq3.c
rtpdec_vc2hq.c
rtpdec_vp8.c
rtpdec_vp9.c
rtpdec_xiph.c
rtpdec.c
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_hevc.c
rtpenc_jpeg.c
rtpenc_latm.c
rtpenc_mpegts.c
rtpenc_mpv.c
rtpenc_vc2hq.c
rtpenc_vp8.c
rtpenc_vp9.c
rtpenc_xiph.c
rtpenc.c
rtpenc.h
rtpproto.c avformat/rtpproto: av_dict_set() -> av_dict_set_int() 2020-06-02 22:25:11 +08:00
rtpproto.h
rtsp.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
rtsp.h
rtspcodes.h
rtspdec.c avformat/rtspdec: av_dict_set() -> av_dict_set_int() 2020-06-02 22:25:11 +08:00
rtspenc.c
s337m.c
samidec.c
sapdec.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
sapenc.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
sauce.c
sauce.h
sbcdec.c
sbgdec.c
sccdec.c avformat/sccdec: split line with multiple subs 2020-06-13 00:20:55 +02:00
sccenc.c
sctp.c
sdp.c
sdr2.c
sdsdec.c
sdxdec.c
segafilm.c
segafilmenc.c
segment.c avformat/segment: Propagate disposition 2020-05-23 07:06:54 +02:00
serdec.c
shortendec.c
sierravmd.c
siff.c
smacker.c
smjpeg.c
smjpeg.h
smjpegdec.c
smjpegenc.c
smoothstreamingenc.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
smush.c
sol.c
sox.h
soxdec.c
soxenc.c
spdif.c
spdif.h
spdifdec.c
spdifenc.c
srtdec.c
srtenc.c
srtp.c
srtp.h
srtpproto.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
stldec.c
subfile.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
subtitles.c
subtitles.h
subviewer1dec.c
subviewerdec.c
supdec.c
supenc.c
svag.c
swf.c
swf.h
swfdec.c
swfenc.c avformat/swfenc: Fix integer overflow in frame rate handling 2020-05-21 09:31:08 +02:00
takdec.c
tcp.c
tedcaptionsdec.c
tee_common.c
tee_common.h
tee.c lavf/tee: pass options to protocol. 2020-06-04 10:52:42 +02:00
teeproto.c
thp.c avformat/thp: Check fps 2020-06-13 00:43:09 +02:00
tiertexseq.c
tls_gnutls.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
tls_libtls.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
tls_mbedtls.c
tls_openssl.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
tls_schannel.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
tls_securetransport.c avformat: Replace ffurl_close() by ffurl_closep() where appropriate 2020-05-25 13:11:36 +02:00
tls.c
tls.h
tmv.c
tta.c
ttaenc.c avformat/ttaenc: Defer freeing dynamic buffer 2020-05-21 05:30:26 +02:00
tty.c
txd.c
ty.c
udp.c
uncodedframecrcenc.c
unix.c
url.c avformat/url: check return value of strchr 2020-06-10 09:22:21 +08:00
url.h URLContext: switch to child_class_iterate() 2020-06-10 12:36:44 +02:00
urldecode.c
urldecode.h
utils.c avformat: Fix overflow in compute_pkt_fields(). 2020-06-06 00:25:00 +02:00
v210.c
vag.c
vapoursynth.c
vc1dec.c
vc1test.c
vc1testenc.c
version.h avformat/fifo: add timeshift option to delay output 2020-06-09 00:57:30 +02:00
vividas.c avformat/vividas: simplify, use av_rescale_q() instead 2020-05-10 22:32:33 +08:00
vivo.c
voc_packet.c
voc.c
voc.h
vocdec.c
vocenc.c
vorbiscomment.c
vorbiscomment.h
vpcc.c
vpcc.h
vpk.c
vplayerdec.c
vqf.c
w64.c
w64.h
wavdec.c avformat/id3v2: Remove unnecessary indirection 2020-05-25 07:06:44 +02:00
wavenc.c avformat/wavenc: simplify, use av_rescale_q() instead 2020-05-10 22:32:34 +08:00
wc3movie.c
webm_chunk.c avformat/webm_chunk: Open AVIOContext before initializing sub-muxer 2020-05-23 07:15:35 +02:00
webmdashenc.c avformat/webmdashenc: Simplify parsing strings 2020-05-23 06:41:50 +02:00
webpenc.c
webvttdec.c
webvttenc.c
westwood_aud.c
westwood_vqa.c
wsddec.c
wtv_common.c
wtv.h
wtvdec.c
wtvenc.c
wv.c
wv.h
wvdec.c
wvedec.c
wvenc.c
xa.c
xmv.c
xvag.c
xwma.c
yop.c
yuv4mpeg.h
yuv4mpegdec.c
yuv4mpegenc.c