bd2dcfaed4
tests/fate/matroska: Add container cropping test
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2025-05-19 03:21:27 +02:00
95c43c6d0e
tests/fate/pixfmt: fix definition of 16bit tests
...
No effect as is, but without this change, new additions to FATE_PIXFMT_16-*
will not work.
Signed-off-by: James Almer <jamrial@gmail.com >
2025-05-18 19:54:32 -03:00
9fadd6ddad
doc: add htmlxref.cnf
...
Silences warnings like
filters.texi:256: warning: no htmlxref.cnf entry found for `ffmpeg-utils'
Signed-off-by: James Almer <jamrial@gmail.com >
2025-05-18 19:54:09 -03:00
0021484d05
avformat/mpegts: update stream info when PMT ES stream_type changes
...
I have several .ts captures where video and audio codec changes even
though the PMT version does not change and the PIDs stay the same.
This happens during transition to/from slate (mpeg2 video and audio)
to network broadcast (hevc video and eac3 audio in private PES).
I've updated fate ts-demux expected results.
2025-05-18 08:57:31 -06:00
20502ba92a
ffmpeg: Don't print graphs if there are no outputs yet
...
Avoids writing an empty json blob in setup error cases.
2025-05-18 15:17:41 +01:00
c18d1b63ab
fftools/graphprint: Fix leak of graph section header string
2025-05-18 15:17:41 +01:00
2070cc138b
fftools/graphprint: Fix leak of graphprint object
2025-05-18 15:17:41 +01:00
06cee0c681
doc: add swscale rewrite design document
...
This should hopefully serve as a better introduction to my new swscale
redesign than hunting down random commit message monologues.
2025-05-18 15:00:58 +02:00
6072e27e9a
swscale/graph: prefer bools to ints
...
This is more consistent with the rest of the newly added code, which
universally switched to using bools for boolean values.
2025-05-18 15:00:45 +02:00
d95944786e
swscale/graph: move vshift() and shift_img() to shared header
...
I need to reuse these inside `ops.c`.
2025-05-18 14:39:57 +02:00
bc9696bff8
swscale/graph: make noop loop more robust
...
The current loop only works if the input and output have the same number
of planes. However, with the new scaling logic, we can also optimize into a
noop the case where the input has extra unneeded planes.
For the memcpy fallback to work in these cases we have to instead check if
the *output* pointer is set, rather than the input pointer.
2025-05-18 14:37:33 +02:00
51e912466f
swscale/graph: expose ff_sws_graph_add_pass
...
So we can move pass-adding business logic outside of graph.c.
2025-05-18 14:37:33 +02:00
f297ebf97a
tests/swscale: improve colorization of speedup
...
The old limits were a bit too tightly clustered around 1.0. Make the
value range much more generous, and also introduce a new highlight
for speedups above 10.0 (order of magnitude improvement).
2025-05-18 14:37:33 +02:00
eb6dc952cb
avcodec/libzvbi-teletextdec: change new lines to \n in ASS header
...
Fixes remaining \r\n is ASS header after 57c545090d
.
Fixes AVERROR_BUG error during init as this decoder expected `\r\n` in
default ASS header. strstr(..., "\r\n[Events]\r\n") failed after changes
in 57c545090d
.
Fixes ticket #11545 .
Fixes: 57c545090d
Signed-off-by: Kacper Michajłow <kasper93@gmail.com >
Signed-off-by: Marton Balint <cus@passwd.hu >
2025-05-17 21:27:29 +02:00
597186b153
avcodec/libaribcaption: change new lines to \n in ASS header
...
Fixes remaining \r\n is ASS header after 57c545090d
.
Signed-off-by: Kacper Michajłow <kasper93@gmail.com >
Signed-off-by: Marton Balint <cus@passwd.hu >
2025-05-17 21:27:29 +02:00
0105ff554b
avcodec/libaribb24: change new lines to \n in ASS header
...
Fixes remaining \r\n is ASS header after 57c545090d
.
Signed-off-by: Kacper Michajłow <kasper93@gmail.com >
Signed-off-by: Marton Balint <cus@passwd.hu >
2025-05-17 21:27:29 +02:00
b5f26c4dd8
avcodec/utvideoenc: Don't advertise unsupported option
...
Also return an better error code if it is set numerically.
(This option was added in 2862b63783
when an AVCodecContext generic option was moved to
a codec private one without realizing that not every
generic one is valid for every encoder.)
Reviewed-by: Jan Ekström <jeebjp@gmail.com >
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2025-05-17 15:06:00 +02:00
88f2ccdf16
cbs_apv: Fix memory leak on metadata parse failure
...
Buffers are allocated inside some metadata types, so we must ensure
that the object is visible to the free function before a parse failure.
Found by libFuzzer.
2025-05-17 11:23:36 +01:00
a65d028fb1
Changelog: VVC supports all content of SCC
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:24:01 +08:00
fd5d754b2a
avcodec/vvc: add adaptive color transform support
...
passed files:
ACT_A_Kwai_3.bit
ACT_B_Kwai_3.bit
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
0e4c0db317
avcodec/vvc/intra: refact out lmcs_scale_chroma and add_residual
...
prepare for adaptive color transform
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
ff1ecc7eb3
avcodec/vvc/intra: make lmcs_scale_chroma inplace
...
prepare for adaptive color transform
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
d2e7ca684c
avcodec/vvc/intra: refact, predict jcbcr to tb->coeffs
...
prepare for adaptive color transform
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
86e96a1c02
avcodec/vvc/intra: fix scaling process for transform coefficients
...
See 8.7.3 Scaling process for transform coefficients
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
fef573f30b
avcodec/vvc/dsp: add adaptive_color_transform
...
See 8.7.4.6 Residual modification process for blocks using colour space conversion
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
8bdad76c00
avcodec/vvc/dsp: update the interface of pred_residual_joint for joint cbcr residual functionality
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
d00a249dbf
avcodec/vvc/ctu: fix derive_chroma_intra_pred_mode
...
See 8.4.3 Derivation process for chroma intra prediction mode
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
c58357edc2
avcodec/vvc/ctu: read act_enabled_flag for adaptive color transform
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
b9c5fb0d00
avcodec/vvc/cabac: add ff_vvc_cu_act_enabled_flag
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
70a2d0d756
avcodec/vvc/intra: add palette coding decoder
...
Introduction at https://ieeexplore.ieee.org/document/9408666
passed files:
10b422_G_Sony_5.bit
10b422_H_Sony_5.bit
10b422_I_Sony_5.bit
10b422_J_Sony_5.bit
10b422_K_Sony_5.bit
10b422_L_Sony_5.bit
8b422_G_Sony_5.bit
8b422_H_Sony_5.bit
8b422_I_Sony_5.bit
8b422_J_Sony_5.bit
8b422_K_Sony_5.bit
8b422_L_Sony_5.bit
8b444_A_Kwai_2.bit
8b444_B_Kwai_2.bit
PALETTE_A_Alibaba_2.bit
PALETTE_B_Alibaba_2.bit
PALETTE_C_Alibaba_2.bit
PALETTE_D_Alibaba_2.bit
PALETTE_E_Alibaba_2.bit
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
95473fae9b
avcodec/vvc/filter: skip deblocking filter for palette
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
26215b8c83
avcodec/vvc/ctu: add palette support
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
fd85f83608
avcodec/vvc/intra: add ff_vvc_palette_derive_scale
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
3ecf8f8766
avcodec/vvc/ctu: refact out intra_data
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
d0f9151eb0
avcodec/vvc: refact, save pf and ciip_flag in ff_vvc_set_intra_mvf
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
75e5fb6e37
avcodec/vvc: refact out ep_init and ep_init_wpp
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
cfea9b88a5
avcodec/vvc/ctu: refact out ff_vvc_channel_range
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
d80041f123
avcodec/vvc: add VVC_MAX_NUM_PALETTE_PREDICTOR_SIZE
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
89ba1bb255
avcodec/vvc/cabac: add palette support
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
a7320efa2b
avcodec/vvc/cabac: add 9.3.3.7 Fixed-length binarization process
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
02fe29fa39
avcodec/vvc/cabac: add 9.3.3.5 k-th order Exp - Golomb binarization process
...
Signed-off-by: Wu Jianhua <toqsxw@outlook.com >
2025-05-17 09:22:40 +08:00
fe97bf8752
tests/fate/probe: add test for dts in wav
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2025-05-16 20:43:58 +02:00
a6a510c1d9
tests/fate/probe: add test for pcm misdetected as mp3 in wav
...
Signed-off-by: Marton Balint <cus@passwd.hu >
2025-05-16 20:43:58 +02:00
0d6ef6f545
fftools/textformat: correctly propagate uninit error codes
...
This allows catching IO errors occuring at file close.
Signed-off-by: Marton Balint <cus@passwd.hu >
2025-05-16 20:43:58 +02:00
a124c9a580
Revert "fftools/textformat/avtextformat: Make close functions return void"
...
This reverts commit 7684243fbe
and
a888975a3c
.
2025-05-16 20:43:58 +02:00
87b0561c88
build: fix windows build issue introduced by 45bea45
...
We defined CR to 2 in libavcodec/vvc/dec.h, but the CR used by _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY winnt.h
reorder the header will avoid the issue.
2025-05-16 20:30:46 +08:00
45daaf2caa
avcodec/mpeg12enc: Fix writing closed captions
...
Broken in 6e225123d8
, because
ff_copy_bits() expects the amount of bits, not bytes to write.
And because it relies on the buffer to be padded, using
side_data->size * 8 is not possible. So partially revert
said commit.
Fixes ticket #11591 .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2025-05-16 12:20:18 +02:00
79e2a845cd
Revert "fftools/graphprint: Now, make it a Killer-Feature!"
...
This reverts commit 1f2b8d7238
.
2025-05-16 10:37:29 +02:00
505510acda
avcodec/mpegvideo: Move parent to MPVEncContext
...
This is more type-safe and avoids having parent contexts
when unnecessary.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2025-05-16 01:37:35 +02:00
bc81a797c4
avcodec/mpeg4videodec: Move setting has_b_frames to mpeg4video_parser.c
...
ff_h263_decode_frame() already does it generically for the decoder.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com >
2025-05-16 01:37:35 +02:00