1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-02 03:06:28 +02:00
FFmpeg/libavformat
Andreas Rheinhardt b021bc4a47 avformat/webpenc: Write correct size for single images when unseekable
The earlier code writes the file and then tries to patch up
the size later. This is avoidable for the common case of
a single image because one can know the complete size
in advance and write it.

Fixes ticket #4609.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2023-12-09 06:29:42 +01:00
..
tests
.gitignore
3dostr.c
4xm.c
a64.c
aacdec.c avformat: Inline raw_codec_id where known 2023-09-14 12:32:02 +02:00
aadec.c
aaxdec.c
ac3_channel_layout_tab.c
ac3dec.c
ac4dec.c
ac4enc.c
acedec.c
acm.c
act.c
adp.c
ads.c
adtsenc.c
adxdec.c avformat: Inline raw_codec_id where known 2023-09-14 12:32:02 +02:00
aea.c avformat/aea: fix bitrate for mono 2023-10-02 01:28:14 +02:00
afc.c
aiff.c
aiff.h
aiffdec.c avformat/aiffdec: improve probe 2023-09-12 19:33:17 +02:00
aiffenc.c
aixdec.c
allformats.c avformat: add QOA demuxer 2023-11-26 17:49:11 +01:00
alp.c
amr.c
amvenc.c
anm.c
apac.c
apc.c
ape.c
apetag.c
apetag.h
apm.c
apngdec.c all: Replace __FUNCTION__ by __func__ 2023-09-07 00:48:50 +02:00
apngenc.c
aptxdec.c
aqtitledec.c
argo_asf.c
argo_asf.h
argo_brp.c
argo_cvg.c
asf_tags.c
asf.c
asf.h
asfcrypt.c
asfcrypt.h
asfdec_f.c avformat/asfdec_f: Saturate presentation time in marker 2023-10-08 21:36:08 +02:00
asfdec_o.c avformat/avformat: Avoid including codec.h, frame.h 2023-09-07 00:30:08 +02:00
asfenc.c avformat/aviobuf: Add ffio_init_(read|write)_context() 2023-09-07 00:41:45 +02:00
assdec.c
assenc.c
ast.c
ast.h
astdec.c
astenc.c
async.c
au.c
av1.c avformat/aviobuf: Add ffio_init_(read|write)_context() 2023-09-07 00:41:45 +02:00
av1.h
av1dec.c avformat/aviobuf: Add ffio_init_(read|write)_context() 2023-09-07 00:41:45 +02:00
avc.c
avc.h
avformat.c avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
avformat.h avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
avformatres.rc
avi.h
avidec.c
avienc.c
avio_internal.h avformat/avio: Constify data pointees of write callbacks 2023-09-10 22:55:42 +02:00
avio.c avformat/avio: Don't use incompatible function pointer type for call 2023-09-12 23:22:49 +02:00
avio.h avformat/avio: Constify data pointees of write callbacks 2023-09-10 22:55:42 +02:00
aviobuf.c avformat/aviobuf: Fix function pointer equality check 2023-09-11 20:27:49 +02:00
avisynth.c
avlanguage.c
avlanguage.h
avr.c
avs2dec.c
avs3dec.c
avs.c avformat/avs: Check if return code is representable 2023-10-03 20:09:27 +02:00
bethsoftvid.c
bfi.c
bink.c
binka.c
bintext.c
bit.c
bluray.c avformat: Remove avformat and avio headers from protocols 2023-09-10 21:17:55 +02:00
bmv.c
boadec.c
bonk.c
brstm.c
c93.c
cache.c
caf.c
caf.h
cafdec.c avformat/cafdec: improve probing 2023-09-21 22:41:10 +02:00
cafenc.c
cavsvideodec.c
cdg.c
cdxl.c
chromaprint.c
cinedec.c
codec2.c
concat.c avformat: Remove avformat and avio headers from protocols 2023-09-10 21:17:55 +02:00
concatdec.c avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
crcenc.c
crypto.c avformat: Remove avformat and avio headers from protocols 2023-09-10 21:17:55 +02:00
dash.c
dash.h
dashdec.c avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
dashenc.c apply spelling fixes 2023-11-18 19:55:42 +01:00
data_uri.c
dauddec.c
daudenc.c
dca_sample_rate_tab.c
dcstr.c
demux_utils.c
demux.c avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
demux.h apply spelling fixes 2023-11-18 19:55:42 +01:00
derf.c
dfa.c
dfpwmdec.c avformat: Inline raw_codec_id where known 2023-09-14 12:32:02 +02:00
dhav.c avformat/avformat: Avoid including codec.h, frame.h 2023-09-07 00:30:08 +02:00
diracdec.c
dnxhddec.c
dovi_isom.c avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
dovi_isom.h
dsfdec.c
dsicin.c
dss.c
dtsdec.c
dtshddec.c
dump.c avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
dv.c
dv.h
dvbsub.c
dvbtxt.c
dvenc.c
dxa.c
eacdata.c
electronicarts.c
epafdec.c
evc.c
evc.h
evcdec.c
ffmeta.h
ffmetadec.c
ffmetaenc.c
fifo_test.c avformat/avformat: Deprecate AVFMT_ALLOW_FLUSH 2023-10-03 01:45:46 +02:00
fifo.c avformat/avformat: Deprecate AVFMT_ALLOW_FLUSH 2023-10-03 01:45:46 +02:00
file_open.c
file.c
filmstripdec.c
filmstripenc.c
fitsdec.c
fitsenc.c
flac_picture.c
flac_picture.h
flacdec.c avformat/flacdec: set time base for headerless flac 2023-09-09 12:09:49 +02:00
flacenc_header.c
flacenc.c
flacenc.h
flic.c
flv.h
flvdec.c
flvenc.c avformat/flvenc: add extract_extradata bsf for new video codecs 2023-11-22 21:02:04 +08:00
format.c avformat/format: Stop reading data at EOF during probing 2023-09-16 20:47:32 +02:00
framecrcenc.c
framehash.c
frmdec.c
fsb.c
ftp.c avformat/avformat: Avoid including codec.h, frame.h 2023-09-07 00:30:08 +02:00
fwse.c
g722.c
g723_1.c
g726.c
g729dec.c
gdv.c
genh.c
gif.c
gifdec.c lavf/gifdec: do not mark as notimestamps 2023-10-03 16:57:02 +02:00
golomb_tab.c
gopher.c
gsmdec.c avformat: Inline raw_codec_id where known 2023-09-14 12:32:02 +02:00
gxf.c
gxf.h
gxfenc.c
h261dec.c
h263dec.c
h264dec.c
hashenc.c
hca.c avformat/hca: add support for decryption 2023-09-22 08:52:18 +02:00
hcom.c
hdsenc.c avformat/avio: Constify data pointees of write callbacks 2023-09-10 22:55:42 +02:00
hevc.c
hevc.h
hevcdec.c
hls_sample_encryption.c
hls_sample_encryption.h
hls.c avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
hlsenc.c avformat/hlsenc: Fix name of flag in error message 2023-11-12 16:47:40 +08:00
hlsplaylist.c avformat/hlsenc: Add CHANNELS to EXT-X-MEDIA for Audio 2023-11-12 16:44:47 +08:00
hlsplaylist.h avformat/hlsenc: Add CHANNELS to EXT-X-MEDIA for Audio 2023-11-12 16:44:47 +08:00
hlsproto.c avformat: Remove avformat and avio headers from protocols 2023-09-10 21:17:55 +02:00
hnm.c
http.c avformat/avformat: Avoid including codec.h, frame.h 2023-09-07 00:30:08 +02:00
http.h
httpauth.c avformat: Remove avformat and avio headers from protocols 2023-09-10 21:17:55 +02:00
httpauth.h
icecast.c
icodec.c
icoenc.c
id3v1.c
id3v1.h
id3v2.c avformat/aviobuf: Add ffio_init_(read|write)_context() 2023-09-07 00:41:45 +02:00
id3v2.h
id3v2enc.c
idcin.c
idroqdec.c
idroqenc.c
iff.c
ifv.c
ilbc.c
imf_cpl.c
imf.h
imfdec.c
img2_alias_pix.c
img2_brender_pix.c
img2.c
img2.h
img2dec.c
img2enc.c avformat/avformat: Avoid including codec.h, frame.h 2023-09-07 00:30:08 +02:00
imx.c
ingenientdec.c
internal.h avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
ip.c
ip.h
ipfsgateway.c
ipmovie.c
ipudec.c
ircam.c
ircam.h
ircamdec.c
ircamenc.c
isom_tags.c avformat/isom_tags: add missing CFHD tag 2023-09-29 18:40:52 +02:00
isom.c
isom.h avformat/mov: add interleaved_read option 2023-09-14 18:49:51 +08:00
iss.c
iv8.c
ivfdec.c
ivfenc.c
jacosubdec.c avformat/jacosubdec: Check timeres 2023-10-08 21:36:00 +02:00
jacosubenc.c
jpegtables.c
jpegxl_anim_dec.c avformat/jpegxl_anim_dec: Check that size fits within argument 2023-09-14 22:00:17 +02:00
jpegxl_parse.c
jvdec.c
kvag.c
lafdec.c avformat/lafdec: Check for 0 parameters 2023-11-03 22:16:33 +01:00
latmenc.c
libamqp.c
libavformat.v
libgme.c
libmodplug.c
libopenmpt.c
librist.c
librtmp.c
libsmbclient.c avformat: Remove avformat and avio headers from protocols 2023-09-10 21:17:55 +02:00
libsrt.c
libssh.c avformat/libssh: avoid deprecated functions 2023-09-18 08:43:24 -04:00
libzmq.c
lmlm4.c
loasdec.c avformat: Inline raw_codec_id where known 2023-09-14 12:32:02 +02:00
log2_tab.c
lrc.c
lrc.h
lrcdec.c
lrcenc.c
luodatdec.c
lvfdec.c
lxfdec.c
m4vdec.c
Makefile avformat: add QOA demuxer 2023-11-26 17:49:11 +01:00
matroska.c
matroska.h
matroskadec.c avformat/matroskadec, mov: Fix declaration-after-statement warnings 2023-10-09 00:21:43 +02:00
matroskaenc.c avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
mca.c
mccdec.c
md5proto.c avformat: Remove avformat and avio headers from protocols 2023-09-10 21:17:55 +02:00
metadata.c
metadata.h
mgsts.c
microdvddec.c
microdvdenc.c
mj2kdec.c
mkvtimestamp_v2.c
mlpdec.c
mlvdec.c avformat/avformat: Avoid including codec.h, frame.h 2023-09-07 00:30:08 +02:00
mm.c
mmf.c
mms.c
mms.h
mmsh.c
mmst.c avformat/aviobuf: Add ffio_init_(read|write)_context() 2023-09-07 00:41:45 +02:00
mods.c
moflex.c
mov_chan.c
mov_chan.h
mov_esds.c
mov.c avformat/mov: Ignore duplicate ftyp 2023-12-05 12:12:10 +01:00
movenc_ttml.c
movenc_ttml.h
movenc.c avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
movenc.h
movenccenc.c
movenccenc.h
movenchint.c
mp3dec.c
mp3enc.c avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
mpc8.c
mpc.c
mpeg4audio_sample_rates.c
mpeg.c
mpeg.h
mpegaudiotabs.c
mpegenc.c avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
mpegts.c avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
mpegts.h
mpegtsenc.c avformat/avformat: Deprecate AVFMT_ALLOW_FLUSH 2023-10-03 01:45:46 +02:00
mpegvideodec.c
mpjpeg.c
mpjpegdec.c avformat/mpjpegdec: remove extra newlines 2023-09-11 22:04:27 +02:00
mpl2dec.c
mpsubdec.c
msf.c
msnwc_tcp.c
mspdec.c
mtaf.c
mtv.c
musx.c
mux_utils.c
mux.c lavf/mux: do not apply max_interleave_delta to subtitles 2023-11-14 18:18:26 +01:00
mux.h avformat/avformat: Deprecate AVFMT_ALLOW_FLUSH 2023-10-03 01:45:46 +02:00
mvdec.c
mvi.c
mxf.c
mxf.h
mxfdec.c avformat/mxfdec: Check klv offset 2023-10-19 20:44:56 +02:00
mxfenc.c avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
mxg.c
ncdec.c
network.c
network.h
nistspheredec.c
nspdec.c
nsvdec.c
nullenc.c
nut.c swscale: add GBRAP14 format support 2023-09-28 19:37:58 +02:00
nut.h
nutdec.c
nutenc.c
nuv.c
oggdec.c
oggdec.h
oggenc.c avformat/avformat: Deprecate AVFMT_ALLOW_FLUSH 2023-10-03 01:45:46 +02:00
oggparsecelt.c
oggparsedirac.c
oggparseflac.c
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 lavf: deprecate AVFMT_FLAG_SHORTEST 2023-09-18 17:10:59 +02:00
options.c avformat/options: add missing disposition flag to AVStream class options 2023-10-25 09:28:14 -03:00
os_support.c
os_support.h
osq.c
paf.c
pcm.c
pcm.h
pcmdec.c
pcmenc.c
pdvdec.c
pjsdec.c
pmpdec.c
pp_bnk.c
prompeg.c
protocols.c avutil/mem: Don't include avutil.h 2023-09-07 00:42:10 +02:00
psxstr.c
pva.c
pvfdec.c
qcp.c
qoadec.c avformat: add QOA demuxer 2023-11-26 17:49:11 +01:00
qtpalette.c
qtpalette.h
r3d.c
rangecoder_dec.c
rawdec.c
rawdec.h
rawenc.c
rawenc.h
rawutils.c
rawutils.h
rawvideodec.c
rdt.c avformat/aviobuf: Add ffio_init_(read|write)_context() 2023-09-07 00:41:45 +02:00
rdt.h
realtextdec.c
redspark.c
replaygain.c avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
replaygain.h
riff.c avcodec: LEAD MCMP decoder 2023-11-08 17:37:58 +11:00
riff.h
riffdec.c
riffenc.c
rka.c
rl2.c
rm.c
rm.h
rmdec.c
rmenc.c
rmsipr.c
rmsipr.h
rpl.c avformat/rpl: Check for number_of_chunks overflow 2023-10-08 21:36:02 +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 Revert "avformat/rtmpproto: Pass rw_timeout to underlying transport protocol" 2023-11-25 10:56:00 +08:00
rtp.c
rtp.h
rtpdec_ac3.c
rtpdec_amr.c
rtpdec_asf.c avformat/aviobuf: Add ffio_init_(read|write)_context() 2023-09-07 00:41:45 +02:00
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 avformat/aviobuf: Add ffio_init_(read|write)_context() 2023-09-07 00:41:45 +02:00
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 avformat/avio_internal: Don't include url.h 2023-09-10 21:19:29 +02:00
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 avformat: Remove avformat and avio headers from protocols 2023-09-10 21:17:55 +02:00
rtpproto.h
rtsp.c avformat/rtsp: Use rtsp_st->stream_index 2023-10-27 18:10:47 +02:00
rtsp.h
rtspcodes.h
rtspdec.c
rtspenc.c
s337m.c
samidec.c
sapdec.c avformat/aviobuf: Add ffio_init_(read|write)_context() 2023-09-07 00:41:45 +02:00
sapenc.c
sauce.c
sauce.h
sbcdec.c
sbgdec.c avformat/sbgdec: Check for negative duration or un-representable end pts 2023-10-08 18:56:27 +02:00
sccdec.c
sccenc.c
scd.c apply spelling fixes 2023-11-18 19:55:42 +01:00
sctp.c
sdns.c
sdp.c
sdr2.c
sdsdec.c
sdxdec.c
seek.c avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
segafilm.c
segafilmenc.c
segment.c
serdec.c avformat: Inline raw_codec_id where known 2023-09-14 12:32:02 +02:00
sga.c
shortendec.c
sierravmd.c
siff.c
smacker.c lavf/smacker: export sample_aspect_ratio 2023-11-05 11:30:13 +01:00
smjpeg.c
smjpeg.h
smjpegdec.c
smjpegenc.c
smoothstreamingenc.c avformat/avio: Constify data pointees of write callbacks 2023-09-10 22:55:42 +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: Remove avformat and avio headers from protocols 2023-09-10 21:17:55 +02:00
stldec.c
subfile.c avformat: Remove avformat and avio headers from protocols 2023-09-10 21:17:55 +02:00
subtitles.c avformat/aviobuf: Add ffio_init_(read|write)_context() 2023-09-07 00:41:45 +02:00
subtitles.h avformat/aviobuf: Add ffio_init_(read|write)_context() 2023-09-07 00:41:45 +02:00
subviewer1dec.c
subviewerdec.c
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/avformat: Deprecate AVFMT_ALLOW_FLUSH 2023-10-03 01:45:46 +02:00
teeproto.c avformat/teeproto: Remove always-false check 2023-09-10 21:19:11 +02:00
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 avformat/tmv: Check video chunk size 2023-10-15 18:54:37 +02:00
to_upper4.c
tta.c avformat/tta: Better totalframes check 2023-10-08 21:36:04 +02:00
ttaenc.c
ttmlenc.c
ttmlenc.h
tty.c
txd.c
ty.c
udp.c avformat: Remove avformat and avio headers from protocols 2023-09-10 21:17:55 +02:00
uncodedframecrcenc.c avformat/avformat: Avoid including codec.h, frame.h 2023-09-07 00:30:08 +02:00
unix.c
url.c avformat: Remove avformat and avio headers from protocols 2023-09-10 21:17:55 +02:00
url.h avformat/avio: Constify data pointees of write callbacks 2023-09-10 22:55:42 +02:00
urldecode.c
urldecode.h
usmdec.c avformat/usmdec: do not return 0 when no packet was produced 2023-10-16 01:09:09 +02:00
utils.c
vag.c
vapoursynth.c avformat/vf_vapoursynth: simplify xyz format check 2023-10-31 15:46:38 +01:00
vc1dec.c
vc1test.c
vc1testenc.c
version_major.h avformat/avformat: use the side data from AVStream.codecpar 2023-10-06 10:03:57 -03:00
version.c
version.h avformat: add QOA demuxer 2023-11-26 17:49:11 +01:00
vividas.c avformat/aviobuf: Add ffio_init_(read|write)_context() 2023-09-07 00:41:45 +02:00
vivo.c
voc_packet.c
voc.c
voc.h
vocdec.c
vocenc.c
vorbiscomment.c
vorbiscomment.h
vpcc.c avcodec/defs: Add AV_PROFILE_* defines, deprecate FF_PROFILE_* defines 2023-09-07 00:39:02 +02:00
vpcc.h
vpk.c
vplayerdec.c
vqf.c
vvcdec.c
w64.c
w64.h
wady.c
wavarc.c
wavdec.c avformat/wavdec: Check left avio_tell for overflow 2023-10-08 21:36:05 +02:00
wavenc.c avformat/avformat: Avoid including codec.h, frame.h 2023-09-07 00:30:08 +02:00
wc3movie.c
webm_chunk.c
webmdashenc.c avformat/avformat: Avoid including codec.h, frame.h 2023-09-07 00:30:08 +02:00
webpenc.c avformat/webpenc: Write correct size for single images when unseekable 2023-12-09 06:29:42 +01:00
webvttdec.c
webvttenc.c
westwood_aud.c
westwood_audenc.c
westwood_vqa.c avformat/westwood_vqa: Check chunk size 2023-10-03 20:09:27 +02:00
wsddec.c avformat: Inline raw_codec_id where known 2023-09-14 12:32:02 +02:00
wtv_common.c
wtv.h
wtvdec.c avformat/wtvdec: Avoid unnecessary allocations 2023-09-12 23:35:26 +02:00
wtvenc.c
wv.c
wv.h
wvdec.c
wvedec.c
wvenc.c
xa.c
xmd.c
xmv.c
xvag.c
xwma.c avformat/xwma: sanity check bits_per_coded_sample 2023-10-08 21:36:07 +02:00
yop.c
yuv4mpeg.h
yuv4mpegdec.c
yuv4mpegenc.c avformat/avformat: Avoid including codec.h, frame.h 2023-09-07 00:30:08 +02:00