[FFmpeg-devel] [PATCH 5/5 v2] avcodec/ac3_parser: improve false positive detection when parsing sync frames

2022-10-22 Thread James Almer
A two byte sync word is not enough to ensure we got a real syncframe, nor are all the range checks we do in the first seven bytes. Do therefore an integrity check for the sync frame in order to prevent the parser from filling avctx with bogus information. Signed-off-by: James Almer --- libavcode

[FFmpeg-devel] [PATCH 3/5] avcodec/aac_ac3_parser: don't try to sync when the parser is configured to handle complete frames

2022-10-22 Thread James Almer
Should speed up parsing when the frames come from non raw containers. Signed-off-by: James Almer --- libavcodec/aac_ac3_parser.c | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/aac_ac3_parser.c b/libavcodec/aac_ac3_parser.c index 6df064e28d..bfbb55d68e 100644 --- a/libavcodec/

[FFmpeg-devel] [PATCH 4/5] avcodec/aac_ac3_parser: reindent after previous commit

2022-10-22 Thread James Almer
Signed-off-by: James Almer --- libavcodec/aac_ac3_parser.c | 62 ++--- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/libavcodec/aac_ac3_parser.c b/libavcodec/aac_ac3_parser.c index bfbb55d68e..e89b12baf9 100644 --- a/libavcodec/aac_ac3_parser.c ++

[FFmpeg-devel] [PATCH 2/5] avcodec/aac_ac3_parser: don't fill stream info in the sync function

2022-10-22 Thread James Almer
Have it only find frame boundaries. The stream props will then be filled once we have an assembled frame. Signed-off-by: James Almer --- libavcodec/aac_ac3_parser.c | 63 + libavcodec/aac_ac3_parser.h | 12 +-- libavcodec/aac_parser.c | 7 + libav

[FFmpeg-devel] [PATCH 1/5 v2] avcodec/ac3dec: split off code discarding garbage at the beginning of a packet

2022-10-22 Thread James Almer
Signed-off-by: James Almer --- No changes since v1. libavcodec/ac3_parser.c | 19 +++ libavcodec/ac3_parser_internal.h | 2 ++ libavcodec/ac3dec.c | 15 ++- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/libavcodec/ac3_parser.c

[FFmpeg-devel] [PATCH] libavformat/aea EOF Patch

2022-10-22 Thread asivery
Hello, This patch aims to fix a problem I've noticed while working with AEA (Sony ATRAC1 comtainer) files. Right now FFmpeg always exits with an "Input/Output error" when dealing with AEA files. This patch solves that issue by returning AVERROR_EOF once the end of file is encountered, instead of

Re: [FFmpeg-devel] [PATCH] avfilter/vf_curves: add PCHIP interpolator and interp option

2022-10-22 Thread Takeshi Ikuma
0001-avfilter-vf_curves-add-PCHIP-interpolator-and-interp-v2.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-r

[FFmpeg-devel] [PATCH 5/5] avutil/tx_template: Move function pointers to const memory

2022-10-22 Thread Andreas Rheinhardt
This can be achieved by moving the AVOnce out of the structure containing the function pointers; the latter can then be made const. This also has the advantage of eliminating padding in the structure (sizeof(AVOnce) is four here) and allowing the AVOnces to be put into .bss (dependening upon the im

[FFmpeg-devel] [PATCH 4/5] avutil/tx_template: Avoid code duplication

2022-10-22 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavutil/tx_template.c | 76 +++-- 1 file changed, 27 insertions(+), 49 deletions(-) diff --git a/libavutil/tx_template.c b/libavutil/tx_template.c index b44a6189cc..c15dc2ea27 100644 --- a/libavutil/tx_template.c +++ b/l

[FFmpeg-devel] [PATCH 3/5] avutil/tx_template: Don't waste space for inexistent factors

2022-10-22 Thread Andreas Rheinhardt
It is possible to avoid the factors array for the power-of-two tables for which said array is unused by using a different structure for initialization the same structure for power-of-two tables as for non-power-of-two-tables. This saves 3*15*16B from .data. Signed-off-by: Andreas Rheinhardt ---

[FFmpeg-devel] [PATCH 2/5] avcodec/aaccoder: Mark function pointer arrays as const

2022-10-22 Thread Andreas Rheinhardt
Forgotten in 57d305207a30131172e1c07c99e2cba833c1add1. Signed-off-by: Andreas Rheinhardt --- libavcodec/aaccoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/aaccoder.c b/libavcodec/aaccoder.c index e3b6b2f02c..6291c16123 100644 --- a/libavcodec/aaccoder.c

[FFmpeg-devel] [PATCH 1/5] avformat/argo_cvg: Mark overrides as const

2022-10-22 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/argo_cvg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/argo_cvg.c b/libavformat/argo_cvg.c index edf75c905e..aedc7c4a32 100644 --- a/libavformat/argo_cvg.c +++ b/libavformat/argo_cvg.c @@ -70,7 +70,7 @@ typedef

[FFmpeg-devel] [PATCH 2/2] doc/protocols: update rtsp options

2022-10-22 Thread Jun Zhao
From: Jun Zhao Split the rtsp options to muxer/demuxer, and update the options. Signed-off-by: Jun Zhao --- doc/protocols.texi | 64 ++ 1 file changed, 64 insertions(+) diff --git a/doc/protocols.texi b/doc/protocols.texi index 0df38d790c..5e9198e67

[FFmpeg-devel] [PATCH 1/2] doc/examples/muxing: Remove unnecessary ret

2022-10-22 Thread Jun Zhao
From: Jun Zhao Remove unnecessary ret and make the code more compact Signed-off-by: Jun Zhao --- doc/examples/muxing.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c index 3acb778322..cd997d5431 100644 --- a/doc/examples/mu

Re: [FFmpeg-devel] [PATCH v4 1/4] lavc: add standalone cached bitstream reader

2022-10-22 Thread Paul B Mahol
On 10/22/22, Anton Khirnov wrote: > From: Alexandra Hájková > > The cached bitstream reader was originally written by Alexandra Hájková > for Libav, with significant input from Kostya Shishkov and Luca Barbato. > It was then committed to FFmpeg in ca079b09549, by merging it with the > implementat

[FFmpeg-devel] [PATCH v4 2/4] lavc/bitstream: templatize for BE/LE

2022-10-22 Thread Anton Khirnov
Allows using both BE and LE bitstream readers in the same file. --- libavcodec/Makefile | 1 + libavcodec/bitstream.h| 563 -- .../{bitstream.h => bitstream_template.h} | 243 tests/ref/fate/source

[FFmpeg-devel] [PATCH v4 1/4] lavc: add standalone cached bitstream reader

2022-10-22 Thread Anton Khirnov
From: Alexandra Hájková The cached bitstream reader was originally written by Alexandra Hájková for Libav, with significant input from Kostya Shishkov and Luca Barbato. It was then committed to FFmpeg in ca079b09549, by merging it with the implementation of the current bitstream reader. This mer

[FFmpeg-devel] [PATCH v4 4/4] lavc/get_bits: add a compat wrapper for the cached bitstream reader

2022-10-22 Thread Anton Khirnov
Use that instead of the merged version. --- libavcodec/get_bits.h | 309 +- 1 file changed, 62 insertions(+), 247 deletions(-) diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h index 992765dc92..a50469b427 100644 --- a/libavcodec/get_bits.h +++ b/l

[FFmpeg-devel] [PATCH v4 3/4] lavc/tests: add a cached bitstream reader test

2022-10-22 Thread Anton Khirnov
--- libavcodec/Makefile | 2 + libavcodec/tests/bitstream_be.c | 19 +++ libavcodec/tests/bitstream_le.c | 20 +++ libavcodec/tests/bitstream_template.c | 183 ++ tests/fate/libavcodec.mak | 10 ++ 5 files changed, 234 insertio

Re: [FFmpeg-devel] [PATCH] avfilter/vf_curves: add PCHIP interpolator and interp option

2022-10-22 Thread Paul B Mahol
On 10/3/22, Takeshi (Kesh) Ikuma wrote: > summary: This patch modifies the `curves` filter with new `interp` option > to let user pick the existing natural cubic spline interpolation > and the new PCHIP interapolation. > > reason: The natural cubic spline does not impose monoton