Martin Storsjö
c31d232656
libavcodec: Don't include libavcodec/x86/vvc/Makefile on any architecture
...
This currently builds files in the libavcodec/x86/{vvc,h26x}
subdirectories, which is somewhat unexpected when building for
another architecture than x86.
The regular arch subdirectories are handled with
-include $(SRC_PATH)/$(1)/$(ARCH)/Makefile
in the toplevel Makefile. Switch this to a similar optional
inclusion, using $(ARCH).
Signed-off-by: Martin Storsjö <martin@martin.st>
10 months ago
Martin Storsjö
cd420c2949
makefile: Clean up missed object files with "make clean"
...
In some builds, the following object files could be left behind
after make clean:
./libavfilter/metal/utils.o
./libavfilter/metal/vf_yadif_videotoolbox.metallib.o
./libavcodec/x86/h26x/h2656dsp.o
./libavcodec/neon/mpegvideo.o
./ffbuild/bin2c_host.o
Fixes: http://trac.ffmpeg.org/ticket/10895
Signed-off-by: Martin Storsjö <martin@martin.st>
10 months ago
Michael Niedermayer
e0e30e07a1
avcodec/proresenc_kostya: Remove bug similarity text
...
According to kostya, it is not based on Wassermans encoder
CC: Kostya Shishkov <kostya.shishkov@gmail.com>
CC: Anatoliy Wasserman <anatoliy.wasserman@yandex.ru>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 months ago
Michael Niedermayer
dc89cf804a
avcodec/vorbisdec: Check remaining data in vorbis_residue_decode_internal()
...
Fixes: timeout
Fixes: 66326/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VORBIS_fuzzer-6295291863040000
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 months ago
Michael Niedermayer
b2d7cbc378
avformat/concatdec: Check in and outpoints to be to produce a positive representable duration
...
Fixes: signed integer overflow: -93000000 - 9223372036839000000 cannot be represented in type 'long'
Fixes: 64546/clusterfuzz-testcase-minimized-ffmpeg_dem_CONCAT_fuzzer-5110813828186112
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 months ago
Michael Niedermayer
5db09574df
avcodec/8bps: Consider width in the minimal size check
...
Fixes: Timeout
Fixes: 64479/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EIGHTBPS_fuzzer-5434435386081280
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 months ago
Andreas Rheinhardt
cc95fd4531
doc/bitstream_filters.texi: Document types used by filter_units
...
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Reviewed-by: Marth64 <marth64@proxyid.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
10 months ago
Marth64
2c82ec9b4a
doc/bitstream_filters: add filter_units practical examples for removing closed captions
...
Signed-off-by: Marth64 <marth64@proxyid.net>
10 months ago
Marth64
590b2d6517
avcodec/ccaption_dec: use consistent naming convention of Closed Captions
...
Signed-off-by: Marth64 <marth64@proxyid.net>
10 months ago
Marth64
8991cedd6a
avcodec/ccaption_dec: clarify log message when out-of-display columns are ignored
...
Signed-off-by: Marth64 <marth64@proxyid.net>
10 months ago
Marth64
e68f57d89e
MAINTAINERS: add myself as dvdvideo demuxer, rcwt muxer maintainer
...
I am willing to maintain these into the future as needed.
Signed-off-by: Marth64 <marth64@proxyid.net>
10 months ago
Marth64
ffc3f2a350
avformat/dvdvideodec: assign mono channel layout explicitly
...
Signed-off-by: Marth64 <marth64@proxyid.net>
10 months ago
Andreas Rheinhardt
ac61231757
avutil/avstring: Use proper types
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
10 months ago
Andreas Rheinhardt
9e36e2fb7b
avcodec/xpmdec: Use LUT for hex char->number conversion
...
Speeds up decoding and also reduces binary size.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
10 months ago
Andreas Rheinhardt
0b2ed7f6c7
avcodec/xbmdec: Use LUT for hex char->number conversion
...
Improves performance by about 30%.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
10 months ago
Andreas Rheinhardt
8fb89790af
avcodec/h264_ps: Fix shadowing
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
10 months ago
Andreas Rheinhardt
878f8cabe8
avcodec/xbmenc: Avoid snprintf() for data->hex conversion
...
Use a small LUT instead. Improves performance.
Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
10 months ago
Andreas Rheinhardt
357e339898
avcodec/xpmdec: Avoid unnecessary size_t->int conversion
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
10 months ago
Marton Balint
64634e809f
avformat/mxfenc: add h264_mp4toannexb bitstream filter if needed when muxing h264
...
Partially fixes ticket #10395 .
Signed-off-by: Marton Balint <cus@passwd.hu>
10 months ago
James Almer
901165516c
fate/flvenc: force the av1 decoder in all steps for fate-enhanced-flv-av1
...
Tested-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
10 months ago
联盟少侠
e6d933404f
avfilter/avfilter: Fix for Incorrect Parameter in ff_filter_config_links
...
src/libavfilter/internal.h:255:45: note: passing argument to parameter 'filter' here
int ff_filter_config_links(AVFilterContext *filter);
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
10 months ago
Martin Storsjö
71e871280d
libavdevice: Fix the avfoundation device after switching to FFInputFormat
...
This was missed in b800327f4c
.
Signed-off-by: Martin Storsjö <martin@martin.st>
10 months ago
Anton Khirnov
abd7da0af9
lavfi: deprecate avfilter_config_links()
...
It never makes sense for this function to be called by users.
10 months ago
Anton Khirnov
6b1f41e152
lavfi: deprecate avfilter_link_free()
...
It never makes sense for this function to be called by users.
10 months ago
Anton Khirnov
c0aee39412
tests/fate/matroska: add tests for side data preference
...
Cf. #10857
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 months ago
Anton Khirnov
6169bd0fea
lavc/*dec: use side data preference for mastering display/content light metadata
10 months ago
Niklas Haas
588c5c3d51
avcodec/dpx: respect side data preference
...
If the time code side data is overridden by the packet level, we also
make sure not to update `p->metadata` to a mismatched timecode.
10 months ago
Niklas Haas
0b7aefe698
avcodec/libdav1d: respect side data preference
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 months ago
Niklas Haas
133cbbe31e
avcodec/webp: respect side data preference
10 months ago
Niklas Haas
276be6da9e
avcodec/tiff: respect side data preference
10 months ago
Niklas Haas
454691a2ec
avcodec/pngdec: respect side data preference
10 months ago
Niklas Haas
ffb8dc7be6
avcodec/mpeg12dec: respect side data preference
...
We only need to consider side data types that may possibly come from the
packet.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 months ago
Niklas Haas
ed3cc8fc65
avcodec/mjpegdec: respect side data preference
10 months ago
Niklas Haas
62f40d0e38
avcodec/libjxldec: respect side data preference
...
Also fixes a memory leak where the side data was previously not properly
cleaned up on OOM.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 months ago
Niklas Haas
b9565db9a0
avcodec/hevcdec: respect side data preference
...
If the time code side data is overridden by the packet level, we also
make sure not to update `out->metadata` to a mismatched timecode.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 months ago
Anton Khirnov
d9f1b321cf
lavc/hevcdec: pass an actual codec context to ff_h2645_sei_to_frame()
...
Needed by following commit.
10 months ago
Niklas Haas
eec01ef65f
avcodec/h264_slice: respect side data preference
...
If the time code side data is overridden by the packet level, we also
make sure not to update `out->metadata` to a mismatched timecode.
10 months ago
Niklas Haas
2c2d3d5acb
avcodec/cri: respect side data preference
...
This function was already ignoring OOM errors.
10 months ago
Niklas Haas
01056078ed
avcodec/av1dec: respect side data preference
10 months ago
Anton Khirnov
6dd832673b
lavc: add content light/mastering display side data wrappers
10 months ago
Niklas Haas
8a70c5cb93
avcodec: add internal side data wrappers
...
The signature of these wrappers is more complicated due to a need to
distinguish between "failed allocating side data" and "side data was
already present".
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 months ago
Anton Khirnov
68a8eca752
lavc: add a decoder option for configuring side data preference
...
This and the following commits fix #10857
10 months ago
Anton Khirnov
efe4478778
lavu/opt: add array options
10 months ago
Anton Khirnov
fc706276c0
lavu/opt: distinguish between native and foreign access for AVOption fields
...
Native access is from the code that declared the options, foreign access
is from code that is using the options. Forbid foreign access to
AVOption.offset/default_val, for which there is no good reason, and
which should allow us more freedom in extending their semantics in a
compatible way.
10 months ago
Anton Khirnov
c259f80315
lavu/opt: factor per-type dispatch out of av_opt_copy()
...
Will be useful in following commits.
10 months ago
Anton Khirnov
2cd89194b0
libavutil/opt: rework figuring out option sizes
...
Replace the opt_size() function, currently only called from
av_opt_copy(), with
* a constant array of element sizes
* a function that signals whether an option type is POD (i.e.
memcpyable) or not
Will be useful in following commits.
10 months ago
Anton Khirnov
85797886fe
lavu/opt: factor per-type dispatch out of av_opt_set()
...
Will be useful in following commits.
10 months ago
Anton Khirnov
a1be08ba05
lavu/opt: factor per-type dispatch out of av_opt_get()
...
Will be useful in following commits.
10 months ago
Andreas Rheinhardt
93178c6c1a
avformat/tests/movenc: Constify write functions
...
Forgotten in 2a68d945cd
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
10 months ago
Haihao Xiang
eb7d019b32
lavfi/vulkan_filter: fix input format
...
Otherwise s->input_format is always yuv420p.
This fixes invalid output format for hwframe download in the command
below:
./ffmpeg -init_hw_device vulkan -f lavfi \
-i testsrc=duration=1,format=nv12 \
-vf 'hwupload,format=vulkan,scale_vulkan=1024:768,hwdownload,format=nv12' \
-f null -
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
10 months ago