[FFmpeg-devel] [PATCH v6 17/25] avfilter/splitcc: Add splitcc filter for closed caption handling

2022-06-26 Thread softworkz
From: softworkz - splitcc {V -> VS) Extract closed-caption (A53) data from video frames as subtitle Frames ffmpeg -y -loglevel verbose -i "https://streams.videolan.org/streams /ts/CC/NewsStream-608-ac3.ts" -filter_complex "[0:v]splitcc[vid1], textmod=mode=remove_ch

[FFmpeg-devel] [PATCH v6 18/25] avfilter/graphicsub2text: Add new graphicsub2text filter (OCR)

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure|1 + doc/filters.texi | 55 ++ libavfilter/Makefile |1 + libavfilter/allfilters.c |1 + libavfilter/sf_graphicsub2text.c | 1137 ++ 5

[FFmpeg-devel] [PATCH v6 19/25] avfilter/subscale: Add filter for scaling and/or re-arranging graphical subtitles

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure | 1 + doc/filters.texi | 164 +++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_subscale.c | 884 ++ 5 files changed, 1051

[FFmpeg-devel] [PATCH v6 20/25] avfilter/subfeed: add subtitle feed filter

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/sf_subfeed.c | 412 +++ 3 files changed, 414 insertions(+) create mode 100644 libavfilter/sf_subfeed.c diff --git a/libavfilter

[FFmpeg-devel] [PATCH v6 21/25] avfilter/text2graphicsub: Added text2graphicsub subtitle filter

2022-06-26 Thread softworkz
From: softworkz Added a text2graphicsub subtitle filter which converts text-based subtitle tracks to bitmap-based subtitle tracks. The filter uses libass to render the subtitles. It takes as parameters an output height and width, as well as a number of colors in the output palette as well as

[FFmpeg-devel] [PATCH v6 22/25] avfilter/snull, strim: Add snull and strim filters

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- configure| 2 +- libavfilter/Makefile | 2 ++ libavfilter/allfilters.c | 2 ++ libavfilter/sf_snull.c | 50 + libavfilter/trim.c | 60 +++- 5 files

[FFmpeg-devel] [PATCH v6 23/25] avcodec/subtitles: Migrate subtitle encoders to frame-based API

2022-06-26 Thread softworkz
From: softworkz and provide a compatibility shim for the legacy api Signed-off-by: softworkz --- libavcodec/assenc.c | 189 ++-- libavcodec/avcodec.h| 5 +- libavcodec/codec_internal.h | 12 --- libavcodec/dvbsubenc.c | 96

[FFmpeg-devel] [PATCH v6 25/25] avcodec/dvbsubdec: Fix conditions for fallback to default resolution

2022-06-26 Thread softworkz
From: softworkz The previous code expected a segment of type CLUT definition to exist in order to accept a set of segments to be complete. This was an incorrect assumption as the presence of a CLUT segment is not mandatory. (version 1.6.1 of the spec is probably a bit more clear about this than

[FFmpeg-devel] [PATCH v4 4/6] avcodec/hevcdec: make set_side_data() accessible

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/hevcdec.c | 117 +-- libavcodec/hevcdec.h | 9 2 files changed, 67 insertions(+), 59 deletions(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index e84c30dd13..b4d8db8c6b 100644

[FFmpeg-devel] [PATCH v4 5/6] avcodec/h264dec: make h264_export_frame_props() accessible

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/h264_slice.c | 98 + libavcodec/h264dec.h| 2 + 2 files changed, 52 insertions(+), 48 deletions(-) diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index d56722a5c2..f2a4c1c657

[FFmpeg-devel] [PATCH v4 6/6] avcodec/qsvdec: Implement SEI parsing for QSV decoders

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/qsvdec.c | 234 1 file changed, 234 insertions(+) diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 5fc5bed4c8..e854f363ec 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c

[FFmpeg-devel] [PATCH v4 1/6] avutil/frame: Add av_frame_copy_side_data() and av_frame_remove_all_side_data()

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz Signed-off-by: Anton Khirnov --- doc/APIchanges | 4 +++ libavutil/frame.c | 67 +++-- libavutil/frame.h | 32 ++ libavutil/version.h | 2 +- 4 files changed, 78 insertions(+), 27

[FFmpeg-devel] [PATCH v4 2/6] avcodec/vpp_qsv: Copy side data from input to output frame

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/qsvvpp.c | 6 ++ libavfilter/vf_overlay_qsv.c | 19 +++ 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 954f882637..f4bf628073 100644 --- a

[FFmpeg-devel] [PATCH v4 3/6] avcodec/mpeg12dec: make mpeg_decode_user_data() accessible

2022-06-26 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/mpeg12.h| 28 libavcodec/mpeg12dec.c | 40 +--- 2 files changed, 33 insertions(+), 35 deletions(-) diff --git a/libavcodec/mpeg12.h b/libavcodec/mpeg12.h index

[FFmpeg-devel] [PATCH v5 4/6] avcodec/hevcdec: make set_side_data() accessible

2022-07-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/hevcdec.c | 117 +-- libavcodec/hevcdec.h | 9 2 files changed, 67 insertions(+), 59 deletions(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index e84c30dd13..b4d8db8c6b 100644

[FFmpeg-devel] [PATCH v5 5/6] avcodec/h264dec: make h264_export_frame_props() accessible

2022-07-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/h264_slice.c | 98 + libavcodec/h264dec.h| 2 + 2 files changed, 52 insertions(+), 48 deletions(-) diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index d56722a5c2..f2a4c1c657

[FFmpeg-devel] [PATCH v5 1/6] avutil/frame: Add av_frame_copy_side_data() and av_frame_remove_all_side_data()

2022-07-01 Thread softworkz
From: softworkz Signed-off-by: softworkz Signed-off-by: Anton Khirnov --- doc/APIchanges | 4 +++ libavutil/frame.c | 67 +++-- libavutil/frame.h | 32 ++ libavutil/version.h | 2 +- 4 files changed, 78 insertions(+), 27

[FFmpeg-devel] [PATCH v5 2/6] avcodec/vpp_qsv: Copy side data from input to output frame

2022-07-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/qsvvpp.c | 6 ++ libavfilter/vf_overlay_qsv.c | 19 +++ 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 954f882637..f4bf628073 100644 --- a

[FFmpeg-devel] [PATCH v5 6/6] avcodec/qsvdec: Implement SEI parsing for QSV decoders

2022-07-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/Makefile | 6 +- libavcodec/hevcdsp.c | 4 + libavcodec/qsvdec.c | 234 +++ 3 files changed, 243 insertions(+), 1 deletion(-) diff --git a/libavcodec/Makefile b/libavcodec/Makefile index

[FFmpeg-devel] [PATCH v5 3/6] avcodec/mpeg12dec: make mpeg_decode_user_data() accessible

2022-07-01 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/mpeg12.h| 28 libavcodec/mpeg12dec.c | 40 +--- 2 files changed, 33 insertions(+), 35 deletions(-) diff --git a/libavcodec/mpeg12.h b/libavcodec/mpeg12.h index

[FFmpeg-devel] [PATCH v3 1/4] avutil/buffer: add av_ref_from_buffer() function

2022-07-21 Thread softworkz
From: softworkz This allows to create AVBufferRef from AVBuffer directly. Signed-off-by: softworkz --- libavutil/buffer.c | 16 libavutil/buffer.h | 8 2 files changed, 24 insertions(+) diff --git a/libavutil/buffer.c b/libavutil/buffer.c index 54590be566

[FFmpeg-devel] [PATCH v3 2/4] avutils/hwcontext: add derive-device function which searches for existing devices in both directions

2022-07-21 Thread softworkz
From: softworkz The test /libavutil/tests/hwdevice checks that when deriving a device from a source device and then deriving back to the type of the source device, the result is matching the original source device, i.e. the derivation mechanism doesn't create a new device in this

[FFmpeg-devel] [PATCH v3 3/4] lavu: bump minor version and add doc/APIchanges entry for av_hwdevice_ctx_get_or_create_derived()

2022-07-21 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/APIchanges | 6 ++ libavutil/version.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index b3563cd528..ba21f60953 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -14,6 +14,12

[FFmpeg-devel] [PATCH v3 4/4] avfilter/hwmap, hwupload: use new av_hwdevice_ctx_get_or_create_derived method

2022-07-21 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_hwmap.c| 4 ++-- libavfilter/vf_hwupload.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_hwmap.c b/libavfilter/vf_hwmap.c index 2e03dfc1fe..b79cf6732c 100644 --- a/libavfilter/vf_hwmap.c

[FFmpeg-devel] [PATCH 1/3] avutil/log: support logging of date and timing information

2022-08-24 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/APIchanges | 3 +++ libavutil/log.c | 32 +--- libavutil/log.h | 10 ++ libavutil/version.h | 4 ++-- 4 files changed, 44 insertions(+), 5 deletions(-) diff --git a/doc/APIchanges b/doc

[FFmpeg-devel] [PATCH 2/3] fftools/opt_common: add timing and datetiming log flags

2022-08-24 Thread softworkz
From: softworkz This commit adds two logging flags: 'timing' and 'datetiming'. Usage: ffmpeg -loglevel +timing or ffmpeg -loglevel +datetiming Signed-off-by: softworkz --- fftools/opt_common.c | 12 1 file changed, 12 insertions(+) diff --git a/fftools/op

[FFmpeg-devel] [PATCH 3/3] doc/fftools-common-opts: document log timing flags

2022-08-24 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/fftools-common-opts.texi | 4 1 file changed, 4 insertions(+) diff --git a/doc/fftools-common-opts.texi b/doc/fftools-common-opts.texi index d9145704d6..eee3b6ead0 100644 --- a/doc/fftools-common-opts.texi +++ b/doc/fftools-common

[FFmpeg-devel] [PATCH 1/3] avutils/hwcontext: add derive-device function which searches for existing devices in both directions

2022-04-30 Thread softworkz
From: softworkz The test /libavutil/tests/hwdevice checks that when deriving a device from a source device and then deriving back to the type of the source device, the result is matching the original source device, i.e. the derivation mechanism doesn't create a new device in this

[FFmpeg-devel] [PATCH 2/3] lavu: bump minor version and add doc/APIchanges entry for av_hwdevice_ctx_get_or_create_derived()

2022-04-30 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/APIchanges | 3 +++ libavutil/version.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 1a9f0a303e..3d467bd3d6 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -14,6 +14,9

[FFmpeg-devel] [PATCH 3/3] avfilter/hwmap, hwupload: use new av_hwdevice_ctx_get_or_create_derived method

2022-04-30 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_hwmap.c| 4 ++-- libavfilter/vf_hwupload.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_hwmap.c b/libavfilter/vf_hwmap.c index 2e03dfc1fe..b79cf6732c 100644 --- a/libavfilter/vf_hwmap.c

[FFmpeg-devel] [PATCH v2 01/11] libavformat/asf: fix handling of byte array length values

2022-05-07 Thread softworkz
From: softworkz The spec allows attachment sizes of up to UINT32_MAX while we can handle only sizes up to INT32_MAX (in downstream code) The debug.assert in get_tag didn't really address this, and truncating the value_len in calling methods cannot be used because the length value is requir

[FFmpeg-devel] [PATCH v2 02/11] libavformat/asfdec: fix get_value return type and add checks for

2022-05-07 Thread softworkz
From: softworkz unsupported values get_value had a return type of int, which means that reading QWORDS (case 4) was broken due to truncation of the result from avio_rl64(). Signed-off-by: softworkz --- libavformat/asfdec_f.c | 38 +- 1 file changed, 29

[FFmpeg-devel] [PATCH v2 03/11] libavformat/asfdec: fix type of value_len

2022-05-07 Thread softworkz
From: softworkz The value_len is an uint32 not an int32 per spec. That value must not be truncated, neither by casting to int, nor by any conditional checks, because at the end of get_tag, this value is needed to move forward in parsing. When the len value gets modified, the parsing may break

[FFmpeg-devel] [PATCH v2 04/11] libavformat/asfdec: fixing get_tag

2022-05-07 Thread softworkz
From: softworkz These three are closely related and can't be separated easily: In get_tag, the code was adding 22 bytes (in order to allow it to hold 64bit numbers as string) to the value len for creating creating a buffer. This was unnecessarily imposing a size-constraint on the valu

[FFmpeg-devel] [PATCH v2 11/11] libavformat/asfdec: fix variable types and add checks for unsupported values

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 168 ++--- 1 file changed, 108 insertions(+), 60 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index b8140a6d57..c7141f6da1 100644 --- a/libavformat/asfdec_f.c

[FFmpeg-devel] [PATCH v2 05/11] libavformat/asfdec: implement parsing of GUID values

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 58c424b565..4c898ab3f2 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c

[FFmpeg-devel] [PATCH v2 10/11] libavformat/asfdec: fix parameter type in asf_read_stream_propertie()

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 024d77903b..b8140a6d57 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -323,7 +323,7

[FFmpeg-devel] [PATCH v2 06/11] libavformat/asfdec: remove unused parameters

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 4c898ab3f2..e87c78cd6c 100644 --- a/libavformat/asfdec_f.c +++ b

[FFmpeg-devel] [PATCH v2 07/11] libavformat/asfdec: fix macro definition and use

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index e87c78cd6c..a7b5ffe465 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat

[FFmpeg-devel] [PATCH v2 08/11] libavformat/asfdec: remove variable redefinition in inner scope

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index a7b5ffe465..8283f245ab 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -1181,7

[FFmpeg-devel] [PATCH v2 09/11] libavformat/asfdec: ensure variables are initialized

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 8283f245ab..024d77903b 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -968,6 +968,7 @@ static int

[FFmpeg-devel] [PATCH 1/2] fftools: use av_fopen_utf8() instead of plain fopen()

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/cmdutils.c | 6 +++--- fftools/ffmpeg.c | 4 ++-- fftools/opt_common.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index 5d7cdc3e10..ca3a4c267a 100644 --- a/fftools

[FFmpeg-devel] [PATCH 2/2] avfilter: use av_fopen_utf8() instead of plain fopen()

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/af_firequalizer.c | 2 +- libavfilter/vf_deshake.c | 2 +- libavfilter/vf_signature.c| 4 ++-- libavfilter/vf_ssim.c | 2 +- libavfilter/vf_vmafmotion.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff

[FFmpeg-devel] [PATCH v3 01/11] libavformat/asf: fix handling of byte array length values

2022-05-07 Thread softworkz
From: softworkz The spec allows attachment sizes of up to UINT32_MAX while we can handle only sizes up to INT32_MAX (in downstream code) The debug.assert in get_tag didn't really address this, and truncating the value_len in calling methods cannot be used because the length value is requir

[FFmpeg-devel] [PATCH v3 02/11] libavformat/asfdec: fix get_value return type and add checks for

2022-05-07 Thread softworkz
From: softworkz unsupported values get_value had a return type of int, which means that reading QWORDS (case 4) was broken due to truncation of the result from avio_rl64(). Signed-off-by: softworkz --- libavformat/asfdec_f.c | 57 +++--- 1 file changed, 43

[FFmpeg-devel] [PATCH v3 03/11] libavformat/asfdec: fix type of value_len

2022-05-07 Thread softworkz
From: softworkz The value_len is an uint32 not an int32 per spec. That value must not be truncated, neither by casting to int, nor by any conditional checks, because at the end of get_tag, this value is needed to move forward in parsing. When the len value gets modified, the parsing may break

[FFmpeg-devel] [PATCH v3 04/11] libavformat/asfdec: fixing get_tag

2022-05-07 Thread softworkz
From: softworkz These three are closely related and can't be separated easily: In get_tag, the code was adding 22 bytes (in order to allow it to hold 64bit numbers as string) to the value len for creating creating a buffer. This was unnecessarily imposing a size-constraint on the valu

[FFmpeg-devel] [PATCH v3 10/11] libavformat/asfdec: fix parameter type in asf_read_stream_propertie()

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 4af8200f89..3663f31330 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -323,7 +323,7

[FFmpeg-devel] [PATCH v3 05/11] libavformat/asfdec: implement parsing of GUID values

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 8071325a2f..9ad2ca946b 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c

[FFmpeg-devel] [PATCH v3 06/11] libavformat/asfdec: remove unused parameters

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 9ad2ca946b..19b4a5fad1 100644 --- a/libavformat/asfdec_f.c +++ b

[FFmpeg-devel] [PATCH v3 11/11] libavformat/asfdec: fix variable types and add checks for unsupported values

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 168 ++--- 1 file changed, 108 insertions(+), 60 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 3663f31330..da43c2bc11 100644 --- a/libavformat/asfdec_f.c

[FFmpeg-devel] [PATCH v3 07/11] libavformat/asfdec: fix macro definition and use

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 19b4a5fad1..9a6f45d9a5 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat

[FFmpeg-devel] [PATCH v3 08/11] libavformat/asfdec: remove variable redefinition in inner scope

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 9a6f45d9a5..928e5717fc 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -1190,7

[FFmpeg-devel] [PATCH v3 09/11] libavformat/asfdec: ensure variables are initialized

2022-05-07 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 928e5717fc..4af8200f89 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -977,6 +977,7 @@ static int

[FFmpeg-devel] [PATCH v2] avfilter: use av_fopen_utf8() instead of plain fopen()

2022-05-09 Thread softworkz
From: softworkz Signed-off-by: softworkz --- use av_fopen_utf8() instead of plain fopen() Unify file access operations by replacing usages of direct calls to posix fopen() v2: Remove changes to fftools for now Published-As: https://github.com/ffstaging/FFmpeg

[FFmpeg-devel] [PATCH] fftools/opt_common: add missing include of avf/version.h

2022-05-13 Thread softworkz
From: softworkz required for PRINT_LIB_INFO(avfilter... Signed-off-by: softworkz --- fftools/opt_common: add missing include of avf/version.h MSVC compiler complains without this include Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-27%2Fsoftworkz

[FFmpeg-devel] [PATCH 1/2] avutil/wchar_filename, file_open: Support long file names on Windows

2022-05-13 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavutil/file_open.c | 2 +- libavutil/wchar_filename.h | 123 + 2 files changed, 124 insertions(+), 1 deletion(-) diff --git a/libavutil/file_open.c b/libavutil/file_open.c index cc302f2f76..57c5e78d51

[FFmpeg-devel] [PATCH 2/2] avformat/os_support: Support long file names on Windows

2022-05-13 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/os_support.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 5e6b32d2dc..6c1e6c3851 100644 --- a/libavformat/os_support.h +++ b/libavformat

[FFmpeg-devel] [PATCH v2] fftools/opt_common: add missing include of avf/version.h

2022-05-14 Thread softworkz
From: softworkz required for PRINT_LIB_INFO(avfilter... Signed-off-by: softworkz --- fftools/opt_common: add missing include of avf/version.h MSVC compiler complains without this include v2: also include avfilter.h as suggested Published-As: https://github.com/ffstaging

[FFmpeg-devel] [PATCH v4 01/10] libavformat/asf: fix handling of byte array length values

2022-05-14 Thread softworkz
From: softworkz The spec allows attachment sizes of up to UINT32_MAX while we can handle only sizes up to INT32_MAX (in downstream code) The debug.assert in get_tag didn't really address this, and truncating the value_len in calling methods cannot be used because the length value is requir

[FFmpeg-devel] [PATCH v4 02/10] libavformat/asfdec: fix get_value return type and add checks for

2022-05-14 Thread softworkz
From: softworkz unsupported values get_value had a return type of int, which means that reading QWORDS (case 4) was broken due to truncation of the result from avio_rl64(). Signed-off-by: softworkz --- libavformat/asfdec_f.c | 57 +++--- 1 file changed, 43

[FFmpeg-devel] [PATCH v4 03/10] libavformat/asfdec: fix type of value_len

2022-05-14 Thread softworkz
From: softworkz The value_len is an uint32 not an int32 per spec. That value must not be truncated, neither by casting to int, nor by any conditional checks, because at the end of get_tag, this value is needed to move forward in parsing. When the len value gets modified, the parsing may break

[FFmpeg-devel] [PATCH v4 04/10] libavformat/asfdec: fixing get_tag

2022-05-14 Thread softworkz
From: softworkz These three are closely related and can't be separated easily: In get_tag, the code was adding 22 bytes (in order to allow it to hold 64bit numbers as string) to the value len for creating creating a buffer. This was unnecessarily imposing a size-constraint on the valu

[FFmpeg-devel] [PATCH v4 05/10] libavformat/asfdec: implement parsing of GUID values

2022-05-14 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index cb7da2d679..81a29f99d5 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c

[FFmpeg-devel] [PATCH v4 10/10] libavformat/asfdec: fix variable types and add checks for unsupported values

2022-05-14 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 168 ++--- 1 file changed, 108 insertions(+), 60 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 95cab8b960..d50682b901 100644 --- a/libavformat/asfdec_f.c

[FFmpeg-devel] [PATCH v4 06/10] libavformat/asfdec: fix macro definition and use

2022-05-14 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 81a29f99d5..91c3874ac7 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat

[FFmpeg-devel] [PATCH v4 07/10] libavformat/asfdec: remove variable redefinition in inner scope

2022-05-14 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 91c3874ac7..fae15d9b05 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -1191,7

[FFmpeg-devel] [PATCH v4 08/10] libavformat/asfdec: ensure variables are initialized

2022-05-14 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index fae15d9b05..cb396cccfe 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -978,6 +978,7 @@ static int

[FFmpeg-devel] [PATCH v4 09/10] libavformat/asfdec: fix parameter type in asf_read_stream_propertie()

2022-05-14 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index cb396cccfe..95cab8b960 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -324,7 +324,7

[FFmpeg-devel] [PATCH v3] fftools/opt_common: add includes of avf headers for clarity

2022-05-15 Thread softworkz
From: softworkz Signed-off-by: softworkz --- fftools/opt_common: add missing include of avf/version.h MSVC compiler complains without this include v2: also include avfilter.h as suggested v3: adjust commit message as suggested by Andreas Published-As: https

[FFmpeg-devel] [PATCH v2 1/2] avutil/wchar_filename, file_open: Support long file names on Windows

2022-05-15 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavutil/file_open.c | 2 +- libavutil/wchar_filename.h | 156 + 2 files changed, 157 insertions(+), 1 deletion(-) diff --git a/libavutil/file_open.c b/libavutil/file_open.c index cc302f2f76..57c5e78d51

[FFmpeg-devel] [PATCH v2 2/2] avformat/os_support: Support long file names on Windows

2022-05-15 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/os_support.h | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 5e6b32d2dc..bd8c89568f 100644 --- a/libavformat/os_support.h +++ b

[FFmpeg-devel] [PATCH v3 1/2] avutil/wchar_filename, file_open: Support long file names on Windows

2022-05-16 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavutil/file_open.c | 2 +- libavutil/wchar_filename.h | 166 + 2 files changed, 167 insertions(+), 1 deletion(-) diff --git a/libavutil/file_open.c b/libavutil/file_open.c index cc302f2f76..57c5e78d51

[FFmpeg-devel] [PATCH v3 2/2] avformat/os_support: Support long file names on Windows

2022-05-16 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/os_support.h | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 5e6b32d2dc..bd8c89568f 100644 --- a/libavformat/os_support.h +++ b

[FFmpeg-devel] [PATCH v3 1/2] avfilter: use av_fopen_utf8() instead of plain fopen()

2022-05-16 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/af_firequalizer.c | 2 +- libavfilter/vf_deshake.c | 2 +- libavfilter/vf_psnr.c | 2 +- libavfilter/vf_signature.c| 4 ++-- libavfilter/vf_ssim.c | 2 +- libavfilter/vf_vidstabdetect.c| 2

[FFmpeg-devel] [PATCH v3 2/2] avfilter/dvdsubdec: use av_fopen_utf8() instead of plain fopen()

2022-05-16 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavcodec/dvdsubdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index 30fe4d41de..19b78b3eb1 100644 --- a/libavcodec/dvdsubdec.c +++ b/libavcodec/dvdsubdec.c @@ -617,7 +617,7

[FFmpeg-devel] [PATCH v4 1/2] avfilter: use av_fopen_utf8() instead of plain fopen()

2022-05-17 Thread softworkz
From: softworkz Unify file access operations by replacing usages of direct calls to posix fopen() to prepare for long filename support on Windows. Signed-off-by: softworkz --- libavfilter/af_firequalizer.c | 2 +- libavfilter/vf_deshake.c | 2 +- libavfilter/vf_psnr.c

[FFmpeg-devel] [PATCH v4 2/2] avcodec/dvdsubdec: use av_fopen_utf8() instead of plain fopen()

2022-05-17 Thread softworkz
From: softworkz Unify file access operations by replacing usages of direct calls to posix fopen() to prepare for long filename support on Windows. Signed-off-by: softworkz --- libavcodec/dvdsubdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dvdsubdec.c b

[FFmpeg-devel] [PATCH v5 1/3] avfilter: use av_fopen_utf8() instead of plain fopen()

2022-05-19 Thread softworkz
From: softworkz Unify file access operations by replacing usages of direct calls to posix fopen() to prepare for long filename support on Windows. Signed-off-by: softworkz --- libavfilter/af_firequalizer.c | 2 +- libavfilter/vf_deshake.c | 2 +- libavfilter/vf_psnr.c

[FFmpeg-devel] [PATCH v5 2/3] avcodec/dvdsubdec: use av_fopen_utf8() instead of plain fopen()

2022-05-19 Thread softworkz
From: softworkz Unify file access operations by replacing usages of direct calls to posix fopen() to prepare for long filename support on Windows. Signed-off-by: softworkz --- libavcodec/dvdsubdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dvdsubdec.c b

[FFmpeg-devel] [PATCH v5 3/3] avfilter: Make avpriv_open a library-internal function on msvcrt

2022-05-19 Thread softworkz
From: softworkz This applies the same change for libavfilter as commit e743e7ae6ee7e535c4394bec6fe6650d2b0dbf65 did for the other libraries. Original commit message: Add one copy of the function into each of the libraries, similarly to what we do for log2_tab. When using static libs, only one

[FFmpeg-devel] [PATCH] avcodec/libx264: don't define X264_API_IMPORTS when compiling static

2022-05-19 Thread softworkz
From: softworkz The definition of X264_API_IMPORTS is required for shared linking (when MSVC is used) but it must not be defined in case of static builds as is stated in x264.h: https://code.videolan.org/videolan/x264/-/blob/ bfc87b7a330f75f5c9a21e56081e4b20344f139e/x264.h#L63-67 This commit

[FFmpeg-devel] [PATCH v6 1/3] avfilter: use av_fopen_utf8() instead of plain fopen()

2022-05-19 Thread softworkz
From: softworkz Unify file access operations by replacing usages of direct calls to posix fopen() to prepare for long filename support on Windows. Signed-off-by: softworkz --- libavfilter/af_firequalizer.c | 2 +- libavfilter/vf_deshake.c | 2 +- libavfilter/vf_psnr.c

[FFmpeg-devel] [PATCH v6 2/3] avcodec/dvdsubdec: use av_fopen_utf8() instead of plain fopen()

2022-05-19 Thread softworkz
From: softworkz Unify file access operations by replacing usages of direct calls to posix fopen() to prepare for long filename support on Windows. Signed-off-by: softworkz --- libavcodec/dvdsubdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dvdsubdec.c b

[FFmpeg-devel] [PATCH v6 3/3] avfilter: Make avpriv_open a library-internal function on msvcrt

2022-05-19 Thread softworkz
From: softworkz This applies the same change for libavfilter as commit e743e7ae6ee7e535c4394bec6fe6650d2b0dbf65 did for the other libraries. Original commit message: Add one copy of the function into each of the libraries, similarly to what we do for log2_tab. When using static libs, only one

[FFmpeg-devel] [PATCH v2] avcodec/libx264: allow to disable definition of X264_API_IMPORTS macro

2022-05-20 Thread softworkz
From: softworkz When MSVC is used, the definition of X264_API_IMPORTS is required for shared linking to libx264.dll, but it must not be defined in case of statically linking to libx264. Defining DISABLE_X264_API_IMPORTS allows to disable the definition of X264_API_IMPORTS for those cases. This

[FFmpeg-devel] [PATCH v5 01/10] libavformat/asf: fix handling of byte array length values

2022-05-20 Thread softworkz
From: softworkz The spec allows attachment sizes of up to UINT32_MAX while we can handle only sizes up to INT32_MAX (in downstream code) The debug.assert in get_tag didn't really address this, and truncating the value_len in calling methods cannot be used because the length value is requir

[FFmpeg-devel] [PATCH v5 02/10] libavformat/asfdec: fix get_value return type and add checks for

2022-05-20 Thread softworkz
From: softworkz unsupported values get_value had a return type of int, which means that reading QWORDS (case 4) was broken due to truncation of the result from avio_rl64(). Signed-off-by: softworkz --- libavformat/asfdec_f.c | 57 +++--- 1 file changed, 43

[FFmpeg-devel] [PATCH v5 03/10] libavformat/asfdec: fix type of value_len

2022-05-20 Thread softworkz
From: softworkz The value_len is an uint32 not an int32 per spec. That value must not be truncated, neither by casting to int, nor by any conditional checks, because at the end of get_tag, this value is needed to move forward in parsing. When the len value gets modified, the parsing may break

[FFmpeg-devel] [PATCH v5 04/10] libavformat/asfdec: fixing get_tag

2022-05-20 Thread softworkz
From: softworkz These three are closely related and can't be separated easily: In get_tag, the code was adding 22 bytes (in order to allow it to hold 64bit numbers as string) to the value len for creating creating a buffer. This was unnecessarily imposing a size-constraint on the valu

[FFmpeg-devel] [PATCH v5 05/10] libavformat/asfdec: implement parsing of GUID values

2022-05-20 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index cb7da2d679..81a29f99d5 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c

[FFmpeg-devel] [PATCH v5 06/10] libavformat/asfdec: avoid clang warnings

2022-05-20 Thread softworkz
From: softworkz such as: - bugprone-macro-parentheses - wextra-semi-stmt Signed-off-by: softworkz --- libavformat/asfdec_f.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 81a29f99d5

[FFmpeg-devel] [PATCH v5 07/10] libavformat/asfdec: remove variable redefinition in inner scope

2022-05-20 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 91c3874ac7..fae15d9b05 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -1191,7

[FFmpeg-devel] [PATCH v5 08/10] libavformat/asfdec: ensure variables are initialized

2022-05-20 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index fae15d9b05..cb396cccfe 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -978,6 +978,7 @@ static int

[FFmpeg-devel] [PATCH v5 09/10] libavformat/asfdec: fix parameter type in asf_read_stream_propertie()

2022-05-20 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index cb396cccfe..95cab8b960 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -324,7 +324,7

[FFmpeg-devel] [PATCH v5 10/10] libavformat/asfdec: fix variable types and add checks for unsupported values

2022-05-20 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavformat/asfdec_f.c | 168 ++--- 1 file changed, 108 insertions(+), 60 deletions(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 95cab8b960..d50682b901 100644 --- a/libavformat/asfdec_f.c

[FFmpeg-devel] [PATCH v2 1/4] avutil/buffer: add av_ref_from_buffer() function

2022-05-21 Thread softworkz
From: softworkz This allows to create AVBufferRef from AVBuffer directly. Signed-off-by: softworkz --- libavutil/buffer.c | 16 libavutil/buffer.h | 8 2 files changed, 24 insertions(+) diff --git a/libavutil/buffer.c b/libavutil/buffer.c index 54590be566

[FFmpeg-devel] [PATCH v2 2/4] avutils/hwcontext: add derive-device function which searches for existing devices in both directions

2022-05-21 Thread softworkz
From: softworkz The test /libavutil/tests/hwdevice checks that when deriving a device from a source device and then deriving back to the type of the source device, the result is matching the original source device, i.e. the derivation mechanism doesn't create a new device in this

[FFmpeg-devel] [PATCH v2 3/4] lavu: bump minor version and add doc/APIchanges entry for av_hwdevice_ctx_get_or_create_derived()

2022-05-21 Thread softworkz
From: softworkz Signed-off-by: softworkz --- doc/APIchanges | 6 ++ libavutil/version.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 1a9f0a303e..92b6d70ac0 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -14,6

[FFmpeg-devel] [PATCH v2 4/4] avfilter/hwmap, hwupload: use new av_hwdevice_ctx_get_or_create_derived method

2022-05-21 Thread softworkz
From: softworkz Signed-off-by: softworkz --- libavfilter/vf_hwmap.c| 4 ++-- libavfilter/vf_hwupload.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_hwmap.c b/libavfilter/vf_hwmap.c index 2e03dfc1fe..b79cf6732c 100644 --- a/libavfilter/vf_hwmap.c

<    1   2   3   4   5   6   7   8   9   >