Andreas Rheinhardt
beb60abab5
avformat/matroskaenc: Allow to set multiple streams as default
...
The Matroska specifications have evolved and now allow to mark
multiple tracks of the same kind as default (whether this was legal or
not before was dubious; e.g. mkvmerge disallowed it). Yet when the
Matroska muxer is set to infer default dispositions if absent, it also
enforced the now outdated restriction. So update this.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-24 03:11:01 +02:00
Andreas Rheinhardt
ff02a42394
avformat/crcenc: Simplify writing trailer
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-24 03:05:27 +02:00
James Zern
cb23c1e553
avcodec/libaomenc: use ctx->usage to get default cfg
...
this prevents some mismatches in config values for realtime and all
intra modes, avoiding failures like:
[libaom-av1 @ ...] Failed to initialize encoder: Invalid parameter
[libaom-av1 @ ...] Additional information: g_lag_in_frames out of
range [..0]
Signed-off-by: James Zern <jzern@google.com>
2021-08-23 15:33:51 -07:00
Paul B Mahol
7f194c7d96
avfilter/af_afreqshift: allow to change order of filters
2021-08-23 19:43:06 +02:00
Andreas Rheinhardt
0383ec88a5
avformat/av1dec: Disallow seeking by bytes
...
The low overhead OBU format provides no means to resync after performing
a byte-based seek; in other words: Byte based seeking is just not
supported.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-23 07:06:22 +02:00
Andreas Rheinhardt
3f938cd46a
avformat/av1dec: Flush BSF upon seeking
...
The av1_merge_frame BSF outputs its cached data when it sees the
beginning of a new frame, i.e. when it sees a temporal delimiter OBU.
Therefore it typically has a temporal delimiter OBU cached after
outputting a packet.
This implies that the OBU demuxer must flush its BSF upon seeking
because otherwise the first frame returned after a seek consists
of an old temporal delimiter OBU only.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-23 07:05:56 +02:00
Andreas Rheinhardt
4d200342a7
avformat/utils: Also set io_repositioned for generic seeking
...
It allows demuxers to perform certain tasks after
a successful generic seek.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-23 07:05:28 +02:00
Andreas Rheinhardt
5a3385d49a
avcodec/av1_frame_merge_bsf: Passthrough pos in case of no timestamps
...
This is needed by the AV1-Annex B and AV1-OBU demuxers.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-23 07:04:55 +02:00
Andreas Rheinhardt
172116fd5d
avformat/av1dec: Deduplicate Annex B and low overhead OBU AV1 demuxer
...
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-23 07:04:08 +02:00
Andreas Rheinhardt
8a805095c1
avformat/av1dec: Set position of AVPackets given to BSF
...
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-23 07:03:36 +02:00
Michael Niedermayer
5e00eab611
avcodec/webp: Check available space in loop in decode_entropy_coded_image()
...
Fixes: Timeout
Fixes: 35401/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WEBP_fuzzer-5714401821851648
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-08-22 18:08:00 +02:00
Michael Niedermayer
65892516d5
avcodec/h264dec: use picture parameters in ff_print_debug_info2()
...
Fixes: out of array read
Fixes: 36341/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-6737583085322240
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-08-22 18:08:00 +02:00
Michael Niedermayer
c59b5e3d1e
avcodec/vc1dec: ff_print_debug_info() does not support WMV3 field_mode
...
Fixes: out of array read
Fixes: 36331/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMV3_fuzzer-5140494328922112.fuzz
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2021-08-22 18:08:00 +02:00
Andreas Rheinhardt
845579c6e2
avfilter/vf_xmedian: Free inpads' names generically
...
This affects only the xmedian filter, not tmedian.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:15:54 +02:00
Andreas Rheinhardt
ad3b1fddb3
avfilter/vf_stack: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:15:47 +02:00
Andreas Rheinhardt
07aacf5ea9
avfilter/vf_signature: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:15:44 +02:00
Andreas Rheinhardt
65884bd81f
avfilter/vf_program_opencl: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:15:42 +02:00
Andreas Rheinhardt
97c796176e
avfilter/vf_mix: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:15:39 +02:00
Andreas Rheinhardt
0ba9089aec
avfilter/vf_mergeplanes: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:15:36 +02:00
Andreas Rheinhardt
2142e71911
avfilter/vf_extractplanes: Free outpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:15:33 +02:00
Andreas Rheinhardt
41c98bfe0a
avfilter/src_movie: Free outpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:15:31 +02:00
Andreas Rheinhardt
0ce19ecd28
avfilter/split: Free outpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:15:28 +02:00
Andreas Rheinhardt
a79852f1c1
avfilter/f_streamselect: Free pads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:14:10 +02:00
Andreas Rheinhardt
64133506f7
avfilter/f_select: Free outpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:14:07 +02:00
Andreas Rheinhardt
f6c6a51d98
avfilter/f_segment: Free outpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:14:03 +02:00
Andreas Rheinhardt
b8e31568df
avfilter/f_interleave: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:13:59 +02:00
Andreas Rheinhardt
fbfcb012ac
avfilter/avf_concat: Free pads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:13:56 +02:00
Andreas Rheinhardt
f28db2ca27
avfilter/af_lv2: Free inpad's name generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:13:53 +02:00
Andreas Rheinhardt
7670e24eb0
avfilter/af_ladspa: Free inpad's name generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:13:50 +02:00
Andreas Rheinhardt
d2e72473df
avfilter/af_join: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:13:47 +02:00
Andreas Rheinhardt
ad5d056dc3
avfilter/af_headphone: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:13:44 +02:00
Andreas Rheinhardt
0e936381ff
avfilter/af_amix: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:13:41 +02:00
Andreas Rheinhardt
414c1b9b62
avfilter/af_amerge: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:13:38 +02:00
Andreas Rheinhardt
c54c8836cf
avfilter/af_afir: Free inpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:13:34 +02:00
Andreas Rheinhardt
59b465e4df
avfilter/af_acrossover: Free outpads' names generically
...
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:13:30 +02:00
Andreas Rheinhardt
f308f37441
avfilter/avfilter: Allow to free non-static pads generically
...
This can be enabled/disabled on a per-pad basis by setting
the AVFILTERPAD_FLAG_FREE_NAME flag; variants of ff_append_(in|out)pads
that do this for you have been added and will be put to use in the
following commits.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:13:25 +02:00
Andreas Rheinhardt
dff1709eb2
avfilter/internal: Uninline ff_insert_(in|out)pad()
...
These functions are not hot at all.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-22 16:12:06 +02:00
Gyan Doshi
d905af0c24
avformat/mov: add AVFMT_SHOW_IDS flag
...
The MOV muxer can store streamids as track ids but they aren't
visible when probing the result via lavf/dump or ffprobe due to
lack of this flag in the demuxer.
2021-08-22 17:55:31 +05:30
Paul B Mahol
da6aab45e4
avfilter/vf_v360: fill unused regions too for orthographic output format
2021-08-22 14:06:14 +02:00
Paul B Mahol
1616f7fb28
avfilter/vf_v360: refactor rescaling of i/j
2021-08-22 14:06:14 +02:00
Nicolas George
252128561e
tools/dvd2concat: use option keyword
...
subfile,,start,X,end,Y,,: is ugly and will be gone some day.
2021-08-22 11:44:17 +02:00
Nicolas George
6d82d894ee
tools/dvd2concat: document that -protocol_whitelist is needed
2021-08-22 11:44:17 +02:00
Nicolas George
0210c8fee2
lavf/concatdec: support per-file options
2021-08-22 11:44:16 +02:00
Nicolas George
46fb395952
libavformat/concatdec: remove support for unsafe=-1
...
It only makes sense as the default value,
but it is not the default since 689211d5727231c3fe92762d224dbadebdbf4e30.
2021-08-22 11:44:16 +02:00
Paul B Mahol
5b258c2770
avfilter/af_astats: remove invalid 5x factor in window size calculation
...
Also allow smaller window sizes, and change histogram for noise
floor calculation to uint64_t type.
2021-08-21 22:05:08 +02:00
Paul B Mahol
99ccad843f
avfilter/aevalsrc: switch to activate
...
Allow to set the EOF timestamp.
FATE test is updated, as last 2 frames were duplicated.
2021-08-21 16:43:21 +02:00
Paul B Mahol
6854cc2ec7
avfilter/asrc_hilbert: switch to activate
...
Allow to set the EOF timestamp.
2021-08-21 16:31:40 +02:00
Paul B Mahol
5e2e9d50ce
avfilter/asrc_afirsrc: switch to activate
...
Allow to set the EOF timestamp.
2021-08-21 16:27:27 +02:00
Paul B Mahol
9153038e0a
avfilter/asrc_sinc: switch to activate
...
Allow to set the EOF timestamp.
2021-08-21 16:27:27 +02:00
Nicolas George
52091fcb5c
lavfi/sine: switch to activate
...
Allow to set the EOF timestamp.
Signed-off-by: Nicolas George <george@nsup.com>
2021-08-21 16:11:11 +02:00