1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00
FFmpeg/libavformat
Michael Niedermayer 2532b20b17
avformat/replaygain: avoid undefined / negative abs
Fixes: signed integer overflow: -2147483648 * 100000 cannot be represented in type 'int'
Fixes: 52060/clusterfuzz-testcase-minimized-ffmpeg_dem_MP3_fuzzer-5131616708329472

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2022-11-04 22:44:16 +01:00
..
tests avformat/tests/imf: add CPL timecode test 2022-11-03 21:16:10 +10:00
.gitignore
3dostr.c
4xm.c
a64.c
aacdec.c
aadec.c
aaxdec.c
ac3_channel_layout_tab.c
ac3dec.c avformat: allow .ec3 as extension for raw E-AC-3 stream 2022-08-08 16:19:38 +02:00
acedec.c
acm.c
act.c
adp.c
ads.c
adtsenc.c avcodec/mpeg4audio: Move ff_copy_pce_data() to a header of its own 2022-10-02 20:16:42 +02:00
adxdec.c
aea.c
afc.c
aiff.c
aiff.h
aiffdec.c avformat/aiffdec: Use 64bit for block_duration use 2022-09-22 17:44:05 +02:00
aiffenc.c
aixdec.c
allformats.c avformat: add APAC demuxer 2022-09-23 20:27:35 +02:00
alp.c
amr.c
amvenc.c
anm.c
apac.c avformat: add APAC demuxer 2022-09-23 20:27:35 +02:00
apc.c
ape.c avformat/ape: Check frames size 2022-09-24 17:57:35 +02:00
apetag.c
apetag.h
apm.c avformat/apm: Use 64bit for bit_rate computation 2022-09-24 17:57:35 +02:00
apngdec.c
apngenc.c
aptxdec.c avformat/aptxdec: Don't set AV_PKT_FLAG_CORRUPT mistakenly 2022-09-19 17:05:33 +02:00
aqtitledec.c
argo_asf.c
argo_asf.h
argo_brp.c
argo_cvg.c avformat/argo_cvg: Mark overrides as const 2022-10-28 09:08:00 +02:00
asf_tags.c
asf.c
asf.h
asfcrypt.c
asfcrypt.h
asfdec_f.c
asfdec_o.c avformat/asfdec_o: Check offset before adding index entry 2022-10-20 21:42:20 +02:00
asfenc.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
assdec.c
assenc.c
ast.c
ast.h
astdec.c
astenc.c
async.c lavf: set internal thread names 2022-10-24 02:00:31 +02:00
au.c
av1.c
av1.h
av1dec.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
avc.c
avc.h
avformat.c avformat: refactor ff_stream_encode_params_copy() to stream_params_copy() 2022-08-12 18:54:19 +02:00
avformat.h avformat/avformat: Improve doxy style 2022-10-17 09:51:47 +02:00
avformatres.rc
avi.h
avidec.c avcodec: add FTR audio decoder and parser 2022-09-24 14:03:59 +02:00
avienc.c
avio_internal.h
avio.c avformat/avio: Schedule AVIODirContext to become an opaque type 2022-10-03 23:21:57 +02:00
avio.h avformat/avio: Add doxy for missing argument 2022-10-17 09:56:47 +02:00
aviobuf.c avformat/aviobuf: Don't use NULL as src for memcpy 2022-10-04 18:01:01 +02:00
avisynth.c avformat/avisynth: reindent 2022-09-04 15:03:32 -04:00
avlanguage.c
avlanguage.h
avr.c
avs2dec.c
avs3dec.c
avs.c
bethsoftvid.c
bfi.c
bink.c
binka.c
bintext.c
bit.c
bluray.c
bmv.c
boadec.c
bonk.c avformat/bonk: Don't set data_offset to what it would be set to anyway 2022-09-16 17:49:40 +02:00
brstm.c
c93.c
cache.c avutil/internal: Move avpriv-file API to a header of its own 2022-09-03 15:41:44 +02:00
caf.c
caf.h
cafdec.c avformat/cafdec: Check that nb_frasmes fits within 64bit 2022-09-24 17:57:36 +02:00
cafenc.c avformat/cafenc: derive Opus frame size from the relevant stream parameters 2022-09-24 12:16:15 -03:00
cavsvideodec.c
cdg.c
cdxl.c
chromaprint.c
cinedec.c
codec2.c
concat.c
concatdec.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
crcenc.c
crypto.c
dash.c
dash.h
dashdec.c avformat/dashdec: Reindent after the previous commit 2022-09-22 15:34:54 +02:00
dashenc.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
data_uri.c
dauddec.c
daudenc.c
dca_sample_rate_tab.c
dcstr.c
demux_utils.c
demux.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
demux.h
derf.c
dfa.c
dfpwmdec.c
dhav.c avformat/dhav: Use 64bit seek_back 2022-09-24 17:57:36 +02:00
diracdec.c
dnxhddec.c
dovi_isom.c
dovi_isom.h
dsfdec.c
dsicin.c
dss.c
dtsdec.c
dtshddec.c
dump.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
dv.c lavf/dv: do not update AVCodecParameters.sample_rate while demuxing 2022-09-05 08:13:57 +02:00
dv.h lavf/dv: remove DVMuxContext declaration from dv.h 2022-09-05 08:00:57 +02:00
dvbsub.c
dvbtxt.c
dvenc.c lavc/dv: rename constants to follow our naming conventions 2022-09-05 08:10:26 +02:00
dxa.c avformat/dxa: avoid bpc overflows 2022-09-24 17:57:37 +02:00
eacdata.c
electronicarts.c
epafdec.c
ffmeta.h
ffmetadec.c
ffmetaenc.c
fifo_test.c
fifo.c lavf: set internal thread names 2022-10-24 02:00:31 +02:00
file_open.c
file.c avutil/internal: Move avpriv-file API to a header of its own 2022-09-03 15:41:44 +02:00
filmstripdec.c
filmstripenc.c
fitsdec.c
fitsenc.c
flac_picture.c
flac_picture.h
flacdec.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
flacenc_header.c
flacenc.c
flacenc.h
flic.c
flv.h
flvdec.c avformat/flvdec: Use 64bit for sum_flv_tag_size 2022-09-24 18:27:43 +02:00
flvenc.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
format.c
framecrcenc.c
framehash.c
frmdec.c
fsb.c
ftp.c
fwse.c
g722.c
g723_1.c
g726.c
g729dec.c
gdv.c
genh.c avformat/genh: Check nb_channels for IMA ADPCM 2022-09-24 17:57:37 +02:00
gif.c
gifdec.c
golomb_tab.c
gopher.c
gsmdec.c
gxf.c
gxf.h
gxfenc.c
h261dec.c
h263dec.c
h264dec.c
hashenc.c
hca.c
hcom.c
hdsenc.c
hevc.c lavf/hevc: Fix type specifiers, missed in 8b5d1553 2022-10-23 20:45:25 +02:00
hevc.h
hevcdec.c
hls_sample_encryption.c
hls_sample_encryption.h
hls.c avformat/hls: fix spelling and grammar on wrap warning 2022-10-20 16:27:06 +05:30
hlsenc.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
hlsplaylist.c
hlsplaylist.h
hlsproto.c
hnm.c
http.c
http.h
httpauth.c
httpauth.h
icecast.c
icodec.c avformat/icodec: Check nb_pal 2022-09-22 17:44:05 +02:00
icoenc.c
id3v1.c
id3v1.h
id3v2.c
id3v2.h
id3v2enc.c
idcin.c
idroqdec.c
idroqenc.c
iff.c libavformat/iff: Check for overflow in body_end calculation 2022-08-28 22:06:44 +02:00
ifv.c avutil/dict: Move avpriv_dict_set_timestamp() to a header of its own 2022-09-03 15:41:44 +02:00
ilbc.c
imf_cpl.c avformat/imfdec: variable initialiaztion cosmetics 2022-11-03 21:16:10 +10:00
imf.h avformat/imfdec: use CPL start timecode if available 2022-11-03 21:16:03 +10:00
imfdec.c avformat/imfdec: use CPL start timecode if available 2022-11-03 21:16:03 +10:00
img2_alias_pix.c
img2_brender_pix.c
img2.c avcodec: WBMP (Wireless Application Protocol Bitmap) image format 2022-08-07 19:18:18 +10:00
img2.h
img2dec.c
img2enc.c avcodec: WBMP (Wireless Application Protocol Bitmap) image format 2022-08-07 19:18:18 +10:00
imx.c
ingenientdec.c
internal.h avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
ip.c
ip.h
ipfsgateway.c avutil/internal: Move avpriv-file API to a header of its own 2022-09-03 15:41:44 +02:00
ipmovie.c
ipudec.c
ircam.c
ircam.h
ircamdec.c
ircamenc.c
isom_tags.c avcodec: add Media 100i decoder 2022-09-30 19:11:36 +02:00
isom.c avformat/movenc: Remove experimental status of flac-in-MP4 muxing 2022-08-08 16:19:38 +02:00
isom.h avformat/mov: get the correct fragment stsd_id when decrypting the sample 2022-09-21 13:58:40 +08:00
iss.c
iv8.c
ivfdec.c
ivfenc.c
jacosubdec.c avformat/jacosubdec: Fix overflow in get_shift() 2022-09-24 17:57:37 +02:00
jacosubenc.c
jpegtables.c
jpegxl_probe.c
jpegxl_probe.h
jvdec.c
kvag.c
lafdec.c avformat: add LAF demuxer 2022-09-16 10:02:19 +02:00
latmenc.c avcodec/mpeg4audio: Move ff_copy_pce_data() to a header of its own 2022-10-02 20:16:42 +02:00
libamqp.c
libavformat.v
libgme.c
libmodplug.c
libopenmpt.c
librist.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
luodatdec.c
lvfdec.c
lxfdec.c
m4vdec.c
Makefile avformat: add APAC demuxer 2022-09-23 20:27:35 +02:00
matroska.c
matroska.h
matroskadec.c avformat/matroska*: Use av_chroma_location_(pos_to_enum|enum_to_pos) 2022-09-26 03:02:27 +02:00
matroskaenc.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
mca.c
mccdec.c
md5proto.c
metadata.c
metadata.h
mgsts.c
microdvddec.c
microdvdenc.c
mj2kdec.c avformat/mj2kdec: Remove always-true #if CONFIG_MJPEG_2000_DEMUXER 2022-10-21 21:12:45 +02:00
mkvtimestamp_v2.c
mlpdec.c
mlvdec.c
mm.c
mmf.c
mms.c
mms.h
mmsh.c
mmst.c
mods.c
moflex.c
mov_chan.c avformat/mov_chan: use the cube layout 2022-10-30 16:46:48 -03:00
mov_chan.h
mov_esds.c
mov.c avformat/mov: get the correct fragment stsd_id when decrypting the sample 2022-09-21 13:58:40 +08:00
movenc_ttml.c
movenc_ttml.h
movenc.c avformat/movenc: Write auxi box for animated AVIF with alpha 2022-09-22 14:10:22 -07:00
movenc.h
movenccenc.c
movenccenc.h
movenchint.c
mp3dec.c avformat/mp3dec: remove a call to avio_tell() 2022-10-08 22:56:30 +08:00
mp3enc.c
mpc8.c
mpc.c
mpeg4audio_sample_rates.c
mpeg.c
mpeg.h
mpegaudiotabs.c
mpegenc.c
mpegts.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
mpegts.h
mpegtsenc.c avformat/mpegtsenc: add omit_rai flag 2022-10-08 22:55:31 +08:00
mpegvideodec.c
mpjpeg.c
mpjpegdec.c
mpl2dec.c
mpsubdec.c
msf.c
msnwc_tcp.c
mspdec.c
mtaf.c
mtv.c
musx.c
mux_utils.c avutil/dict: Move avpriv_dict_set_timestamp() to a header of its own 2022-09-03 15:41:44 +02:00
mux.c avformat/mux: Constify validate_codec_tag() 2022-10-27 15:32:37 +02:00
mux.h avformat: refactor ff_stream_encode_params_copy() to stream_params_copy() 2022-08-12 18:54:19 +02:00
mvdec.c
mvi.c
mxf.c avformat/mxfdec: SMPTE RDD 48:2018 Amd 1:2022 support 2022-08-07 22:01:21 +02:00
mxf.h avformat/mxfdec: SMPTE RDD 48:2018 Amd 1:2022 support 2022-08-07 22:01:21 +02:00
mxfdec.c avformat/mxfdec: do not log warning of multiple ANC packets if count is 0 2022-10-06 10:23:39 +02:00
mxfenc.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
mxg.c
ncdec.c
network.c
network.h
nistspheredec.c
nspdec.c
nsvdec.c
nullenc.c
nut.c
nut.h
nutdec.c avformat/nutdec: Don't shrink packet size manually 2022-09-25 14:56:03 +02:00
nutenc.c
nuv.c
oggdec.c
oggdec.h
oggenc.c
oggparsecelt.c
oggparsedirac.c
oggparseflac.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
oggparseogm.c
oggparseopus.c
oggparseskeleton.c
oggparsespeex.c
oggparsetheora.c
oggparsevorbis.c
oggparsevp8.c
oma.c
oma.h
omadec.c
omaenc.c
options_table.h
options.c
os_support.c
os_support.h avformat/os_support: Include stdint.h for int64_t 2022-08-24 03:43:52 +02:00
paf.c
pcm.c
pcm.h
pcmdec.c
pcmenc.c
pjsdec.c
pmpdec.c
pp_bnk.c
prompeg.c
protocols.c configure: Add msmpeg4(dec|enc) subsystems 2022-08-03 21:18:25 +02:00
psxstr.c
pva.c
pvfdec.c
qcp.c
qtpalette.c
qtpalette.h
r3d.c
rawdec.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
rawdec.h
rawenc.c avformat: allow .ec3 as extension for raw E-AC-3 stream 2022-08-08 16:19:38 +02:00
rawenc.h
rawutils.c
rawutils.h
rawvideodec.c
rdt.c
rdt.h
realtextdec.c
redspark.c
replaygain.c avformat/replaygain: avoid undefined / negative abs 2022-11-04 22:44:16 +01:00
replaygain.h
riff.c avcodec: ViewQuest VQC decoder 2022-10-18 13:20:37 +11:00
riff.h
riffdec.c libavformat/riffec: Zero-initialize channels in ff_get_wav_header 2022-09-20 18:58:23 -03:00
riffenc.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
rl2.c
rm.c
rm.h
rmdec.c avformat/rmdec: check tag_size 2022-09-24 18:28:19 +02:00
rmenc.c
rmsipr.c
rmsipr.h
rpl.c avformat/rpl: Use 64bit for duration computation 2022-09-24 18:29:08 +02:00
rsd.c
rso.c
rso.h
rsodec.c
rsoenc.c
rtmp.h
rtmpcrypt.c
rtmpcrypt.h
rtmpdh.c
rtmpdh.h
rtmpdigest.c
rtmphttp.c
rtmppkt.c
rtmppkt.h
rtmpproto.c
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_rfc4175.c
rtpenc_vc2hq.c
rtpenc_vp8.c
rtpenc_vp9.c
rtpenc_xiph.c
rtpenc.c
rtpenc.h
rtpproto.c
rtpproto.h
rtsp.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
rtsp.h
rtspcodes.h
rtspdec.c
rtspenc.c
s337m.c
samidec.c
sapdec.c
sapenc.c
sauce.c
sauce.h
sbcdec.c
sbgdec.c avformat/sbgdec: Check ts_int in genrate_intervals 2022-09-24 18:28:41 +02:00
sccdec.c
sccenc.c
scd.c
sctp.c
sdp.c lavf/sdp: Add missing version.h include 2022-08-31 16:24:22 +02:00
sdr2.c
sdsdec.c avformat/sdsdec: Use av_rescale() to avoid intermediate overflow in duration calculation 2022-09-24 18:28:51 +02:00
sdxdec.c
seek.c avformat/internal: Don't include avcodec.h 2022-09-26 03:02:50 +02:00
segafilm.c
segafilmenc.c
segment.c avformat: refactor ff_stream_encode_params_copy() to stream_params_copy() 2022-08-12 18:54:19 +02:00
serdec.c avformat/serdec: fix BE/LE format handling 2022-11-03 16:59:18 +01:00
sga.c
shortendec.c
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
spdifdec.c avformat/spdifdec: Use 64bit to compute bit rate 2022-09-24 18:29:32 +02:00
spdifenc.c avformat/spdifenc: Reorder struct members to make it smaller 2022-09-20 18:32:28 +02:00
srtdec.c
srtenc.c
srtp.c
srtp.h
srtpproto.c
stldec.c
subfile.c
subtitles.c
subtitles.h
subviewer1dec.c
subviewerdec.c avformat/subviewerdec: Make read_ts() more flexible 2022-08-23 20:03:03 +02:00
supdec.c
supenc.c
svag.c
svs.c
swf.c
swf.h
swfdec.c
swfenc.c
takdec.c
tcp.c
tedcaptionsdec.c
tee_common.c
tee_common.h
tee.c avformat: refactor ff_stream_encode_params_copy() to stream_params_copy() 2022-08-12 18:54:19 +02:00
teeproto.c
thp.c
tiertexseq.c
tls_gnutls.c
tls_libtls.c
tls_mbedtls.c
tls_openssl.c
tls_schannel.c
tls_securetransport.c
tls.c
tls.h
tmv.c
to_upper4.c
tta.c
ttaenc.c
ttmlenc.c
ttmlenc.h
tty.c
txd.c
ty.c
udp.c lavf: set internal thread names 2022-10-24 02:00:31 +02:00
uncodedframecrcenc.c
unix.c
url.c
url.h
urldecode.c
urldecode.h
utils.c
vag.c
vapoursynth.c
vc1dec.c
vc1test.c
vc1testenc.c
version_major.h avformat/avio: Schedule AVIODirContext to become an opaque type 2022-10-03 23:21:57 +02:00
version.c
version.h avformat/mpegtsenc: add omit_rai flag 2022-10-08 22:55:31 +08:00
vividas.c avformat/vividas: Check packet size 2022-10-04 23:47:54 +02: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/wavdec: fix the ID3 metadata obtained in WAV format's missing 2022-08-24 10:45:33 +08:00
wavenc.c
wc3movie.c
webm_chunk.c avformat/matroskaenc: Use custom min timestamp 2022-09-05 20:36:22 +02:00
webmdashenc.c
webpenc.c
webvttdec.c
webvttenc.c
westwood_aud.c
westwood_audenc.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 avformat/xwma: Use av_rescale() for duration computation 2022-09-24 18:28:57 +02:00
yop.c
yuv4mpeg.h
yuv4mpegdec.c avformat/yuv4mpegdec: increase header limit 2022-10-21 20:11:14 +02:00
yuv4mpegenc.c