[FFmpeg-devel] [PATCH 10/13] avcodec/h264_levels, h265_profile_level: Remove ff_h26[45]_get_level

2021-01-28 Thread Andreas Rheinhardt
Unused. Signed-off-by: Andreas Rheinhardt --- libavcodec/h264_levels.c| 12 libavcodec/h264_levels.h| 3 --- libavcodec/h265_profile_level.c | 12 libavcodec/h265_profile_level.h | 2 -- 4 files changed, 29 deletions(-) diff --git a/libavcodec/h264_le

[FFmpeg-devel] [PATCH 08/13] fftools/ffmpeg_filter: Remove choose_sample_fmt

2021-01-28 Thread Andreas Rheinhardt
Unused since 6b35a83214f1bc3fb38c9ea9c2cd3676f28709fa. Signed-off-by: Andreas Rheinhardt --- fftools/ffmpeg.h| 1 - fftools/ffmpeg_filter.c | 23 --- 2 files changed, 24 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 8046e75026..6750432a81 10064

[FFmpeg-devel] [PATCH 09/13] avfilter/ebur128: Remove unused functions

2021-01-28 Thread Andreas Rheinhardt
Also make a function only used here static. Signed-off-by: Andreas Rheinhardt --- libavfilter/ebur128.c | 54 +++-- libavfilter/ebur128.h | 69 +-- 2 files changed, 5 insertions(+), 118 deletions(-) diff --git a/libavfilter/ebu

[FFmpeg-devel] [PATCH 07/13] avformat/rtmppkt: Only compile ff_rtmp_packet_dump if defined(DEBUG)

2021-01-28 Thread Andreas Rheinhardt
It is only used in this case. Signed-off-by: Andreas Rheinhardt --- libavformat/rtmppkt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c index 0e61e83699..00eb0873b2 100644 --- a/libavformat/rtmppkt.c +++ b/libavformat/rtmppkt.c @@ -561,6 +561

[FFmpeg-devel] [PATCH 11/13] avcodec/cabac: Move encoder related stuff to libavcodec/tests/cabac.c

2021-01-28 Thread Andreas Rheinhardt
(This is actually the second time the encoder stuff is removed; the first was in 8b4119187b62d6932e07aded11d33d3b24e1b42f.) Signed-off-by: Andreas Rheinhardt --- libavcodec/cabac.c | 12 -- libavcodec/cabac.h | 5 --- libavcodec/tests/cabac.c | 93 +--

[FFmpeg-devel] [PATCH 04/13] avformat/rtmppkt: Remove ff_amf_read_bool

2021-01-28 Thread Andreas Rheinhardt
Added in 50468f93e3940ba78836dfdac5165c20ae75327a, but never used. Signed-off-by: Andreas Rheinhardt --- libavformat/rtmppkt.c | 8 libavformat/rtmppkt.h | 9 - 2 files changed, 17 deletions(-) diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c index 1eeae17337..0e61e83

[FFmpeg-devel] [PATCH 03/13] avcodec/vorbis_data: Move encoder-related table to its only user

2021-01-28 Thread Andreas Rheinhardt
Said table was unused in case libvorbis was disabled. Signed-off-by: Andreas Rheinhardt --- libavcodec/libvorbisenc.c | 13 - libavcodec/vorbis.h | 1 - libavcodec/vorbis_data.c | 11 --- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/libavcodec/libv

[FFmpeg-devel] [PATCH 02/13] avcodec/fft_template: Avoid useless function

2021-01-28 Thread Andreas Rheinhardt
ff_init_ff_cos_tabs is only used for the floating point FFT and only if hardcoded tables are disabled. Signed-off-by: Andreas Rheinhardt --- libavcodec/fft.h | 16 libavcodec/fft_template.c | 10 -- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git

[FFmpeg-devel] [PATCH 13/13] fftools/ffmpeg_filter: Make functions only used locally static

2021-01-28 Thread Andreas Rheinhardt
Also remove some declarations of inexistent functions while at it. Signed-off-by: Andreas Rheinhardt --- fftools/ffmpeg.h| 7 --- fftools/ffmpeg_filter.c | 5 +++-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index fa726575f4..5a

[FFmpeg-devel] [PATCH 05/13] avformat/rtmpproto: Only include RTMP protocols that are enabled

2021-01-28 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/rtmpproto.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index d9741bc622..5a540e3240 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmppro

[FFmpeg-devel] [PATCH 12/13] fftools/ffmpeg_filter: Remove ist_in_filtergraph

2021-01-28 Thread Andreas Rheinhardt
Unused since af1761f7b5b1b72197dc40934953b775c2d951cc. Signed-off-by: Andreas Rheinhardt --- fftools/ffmpeg.h| 1 - fftools/ffmpeg_filter.c | 9 - 2 files changed, 10 deletions(-) diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index 6750432a81..fa726575f4 100644 --- a/fftools/

[FFmpeg-devel] [PATCH 06/13] avformat/avio: Remove ffurl_open

2021-01-28 Thread Andreas Rheinhardt
It is only used in commented-out (and nonworking) code in async.c. Signed-off-by: Andreas Rheinhardt --- libavformat/async.c | 6 -- libavformat/avio.c | 7 --- libavformat/url.h | 7 ++- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/libavformat/async.c b/libavfo

[FFmpeg-devel] [PATCH 01/13] avfilter/drawutils: Remove remnants of old API

2021-01-28 Thread Andreas Rheinhardt
ff_fill_line_with_color and ff_draw_rectangle are unused since 19c8f2271423281c9b876b984076a6467c455904; ff_copy_rectangle is unused since 53b7a3fe081ec56c5706228eb6431bb943ad471a. Signed-off-by: Andreas Rheinhardt --- libavfilter/drawutils.c | 98 - libav

Re: [FFmpeg-devel] [PATCH 1/4] avcodec/dolby_e_parser: Remove unused ParseContext

2021-01-28 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Parsers are not forced to use a ParseContext and the other stuff from > parser.h which is just designed to help parsers recombining frames. But > this parser does not do this at all, i.e. the ParseContext is unused. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/d

[FFmpeg-devel] Race condition in libavformat/libsrt.c causes EOF to be missed

2021-01-28 Thread Belabox Project
Hi, I've ran into a bug in libavformat's libsrt while using OBS. It's still present as of commit ed51890191. I've tracked down the issue and implemented a workaround, but a possible misunderstanding of SRT's asynchronous functionality which caused this issue seems to be permeating the implementati

[FFmpeg-devel] [PATCH] lavc/qsvdec: needn't free the string for AV_OPT_TYPE_STRING AVOption

2021-01-28 Thread Haihao Xiang
The string for AV_OPT_TYPE_STRING AVOption gets freed by av_opt_free() when closing the AVCodecContext Signed-off-by: Haihao Xiang --- libavcodec/qsvdec.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index d10f90a0db..2d4f72b3f6 100644 --- a/liba

Re: [FFmpeg-devel] [PATCH v2 1/6] avcodec/qsv_h2645: fix memory leak for plugin load

2021-01-28 Thread Xiang, Haihao
On Wed, 2021-01-27 at 13:44 +0100, Anton Khirnov wrote: > Quoting Xu Guangxin (2021-01-05 03:43:37) > > --- > > libavcodec/qsvdec_h2645.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/libavcodec/qsvdec_h2645.c b/libavcodec/qsvdec_h2645.c > > index 02c41883b6..3d6e85230f 100644

[FFmpeg-devel] [PATCH] flac: add GIF image support

2021-01-28 Thread leo60228
The FLAC specification requires GIF images to contain their number of colors. While I can't find a specific reference to that effect, I'm assuming that's why GIF images were previously unsupported. This was implemented by just writing AVPALETTE_COUNT for paletted images. --- Changelog

Re: [FFmpeg-devel] [PATCH 1/2] avformat: Change avpriv_new_chapter() from O(n) to (1) in the common case

2021-01-28 Thread Michael Niedermayer
On Thu, Jan 07, 2021 at 01:43:27AM +0100, Michael Niedermayer wrote: > Fixes: timeout (slow -> 300ms) > Fixes: > 28876/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-5664824587583488 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg >

Re: [FFmpeg-devel] [PATCH 1/4] avformat/mpc8: Check size before implicitly converting to int

2021-01-28 Thread Michael Niedermayer
On Fri, Dec 25, 2020 at 12:24:16AM +0100, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 28551/clusterfuzz-testcase-minimized-ffmpeg_dem_MPC8_fuzzer-6229183210586112 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by:

Re: [FFmpeg-devel] [PATCH v3 1/2] vc2enc: Add missing static to local variables

2021-01-28 Thread Michael Niedermayer
On Mon, Jan 25, 2021 at 10:07:01PM +, Mark Thompson wrote: > --- > libavcodec/vc2enc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c > index bab9d0f3d5..7bd2e4c2ab 100644 > --- a/libavcodec/vc2enc.c > +++ b/libavcodec/vc

Re: [FFmpeg-devel] [PATCH 1/3] avfilter/vf_pseudocolor: add presets

2021-01-28 Thread Paul B Mahol
On Thu, Jan 28, 2021 at 4:08 PM Andreas Rheinhardt < andreas.rheinha...@gmail.com> wrote: > Paul B Mahol: > > Signed-off-by: Paul B Mahol > > --- > > doc/filters.texi | 13 + > > libavfilter/vf_pseudocolor.c | 735 ++- > > 2 files changed, 746 inserti

[FFmpeg-devel] [PATCH 6/6] avcodec/aacps_fixed_tablegen: Don't include config.h

2021-01-28 Thread Andreas Rheinhardt
It is only valid for the target, not the host and therefore it must not be included when building the tables when hardcoded tables are enabled. Signed-off-by: Andreas Rheinhardt --- libavcodec/aacps_fixed_tablegen.h| 6 +- libavcodec/aacps_tablegen_template.c | 1 + 2 files changed, 6 in

[FFmpeg-devel] [PATCH 5/6] avcodec/ac3enc: Share options and defaults

2021-01-28 Thread Andreas Rheinhardt
Both AC-3 encoder share the same options, yet they are nevertheless duplicated in the binary; and the options applying to the EAC-3 encoder are a proper subset of the options for the AC-3 encoders, so that it can use the same options as the former by putting the options specific to AC-3 at the fron

[FFmpeg-devel] [PATCH 4/6] avcodec/Makefile: Remove dependency for nonexistent files

2021-01-28 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/Makefile b/libavcodec/Makefile index 49955fd02a..614a4b22e0 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -1282,7 +1282,6 @@ $(SUBDIR)cbrt_data_fixed.o: $(SUBDIR

[FFmpeg-devel] [PATCH 3/6] avcodec/aacdec_fixed: Move fixed-point sinewin tables to its only user

2021-01-28 Thread Andreas Rheinhardt
The fixed-point AAC decoder is the only user of the fixed-point sinewin tables from sinewin; and it only uses a few of them (about 10% when counting by size). This means that guarding initializing these tables by an AVOnce (as done in 3719122065863f701026632f610175980d42b05a) is unnecessary for the

[FFmpeg-devel] [PATCH 2/6] ffbuild/common: Make deletion of templates possible

2021-01-28 Thread Andreas Rheinhardt
If a target to be built includes a template file, the target's .d file includes the template file as a prerequisite; if the code were changed so that the template file no longer exists, one would get an error from make that it has no rule for the template file target. Therefore add a dummy rule for

[FFmpeg-devel] [PATCH 1/6] avcodec/aac_defines: Make macro more general

2021-01-28 Thread Andreas Rheinhardt
The floating point AAC decoder shares lots of stuff (mainly tables) with other components; this is not so much true for the fixed point AAC decoder: There are tables for which the fixed point decoder is the only user whereas the floating point analogue is shared with other components. This can be e

Re: [FFmpeg-devel] [PATCH 2/3] libavformat/hls: add support for SAMPLE-AES decryption in HLS demuxer

2021-01-28 Thread James Almer
On 1/28/2021 12:53 PM, Lynne wrote: Jan 28, 2021, 16:11 by nachiket.program...@gmail.com: +static int decrypt_nal_unit(HLSCryptoContext *crypto_ctx, NALUnit *nalu) +{ +int ret = 0; +int rem_bytes; +uint8_t *data; +uint8_t iv[16]; + +ret = av_aes_init(crypto_ctx->aes_ctx, cryp

Re: [FFmpeg-devel] [PATCH 2/3] libavformat/hls: add support for SAMPLE-AES decryption in HLS demuxer

2021-01-28 Thread Lynne
Jan 28, 2021, 16:11 by nachiket.program...@gmail.com: > Apple HTTP Live Streaming Sample Encryption: > > https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/HLS_Sample_Encryption > > Signed-off-by: Nachiket Tarate > --- > libavformat/Makefile | 2 +- > libavform

Re: [FFmpeg-devel] [PATCH 1/3] libavcodec/adts_header: add frame_length field and avpriv function to parse AAC ADTS header

2021-01-28 Thread Lynne
Jan 28, 2021, 16:08 by nachiket.program...@gmail.com: > These will be used by HLS demuxer in case of SAMPLE-AES decryption. > > Signed-off-by: Nachiket Tarate > --- > libavcodec/adts_header.c | 1 + > libavcodec/adts_header.h | 14 ++ > libavcodec/adts_parser.c | 28

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/xbmenc: Allow for making UW images

2021-01-28 Thread Jose Da Silva
This is an incredibly busy dev list. - pretty easy to miss a message in the noise. Thanks for the FYI. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffm

Re: [FFmpeg-devel] [PATCH] avformat/mxf: Establish register of local tags

2021-01-28 Thread Tomas Härdin
tor 2021-01-28 klockan 14:48 +0100 skrev Tomas Härdin: > tor 2021-01-28 klockan 08:56 +0100 skrev Marton Balint: > > On Thu, 28 Jan 2021, Tomas Härdin wrote: > > > ons 2021-01-27 klockan 23:50 +0100 skrev Marton Balint: > > > > On Wed, 27 Jan 2021, Tomas Härdin wrote: > > > There's not really anyth

[FFmpeg-devel] [PATCH 2/3] libavformat/hls: add support for SAMPLE-AES decryption in HLS demuxer

2021-01-28 Thread Nachiket Tarate
Apple HTTP Live Streaming Sample Encryption: https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/HLS_Sample_Encryption Signed-off-by: Nachiket Tarate --- libavformat/Makefile | 2 +- libavformat/hls.c| 101 +++-- libavformat/hls_sample_aes.c | 4

[FFmpeg-devel] [PATCH 1/3] libavcodec/adts_header: add frame_length field and avpriv function to parse AAC ADTS header

2021-01-28 Thread Nachiket Tarate
These will be used by HLS demuxer in case of SAMPLE-AES decryption. Signed-off-by: Nachiket Tarate --- libavcodec/adts_header.c | 1 + libavcodec/adts_header.h | 14 ++ libavcodec/adts_parser.c | 28 3 files changed, 43 insertions(+) diff --git a/libavc

[FFmpeg-devel] [PATCH 3/3] libavformat/hls: correct indentation

2021-01-28 Thread Nachiket Tarate
Signed-off-by: Nachiket Tarate --- libavformat/hls.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 850068736e..281842e10b 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -2037,23 +2037

Re: [FFmpeg-devel] [PATCH 1/3] avfilter/vf_pseudocolor: add presets

2021-01-28 Thread Andreas Rheinhardt
Paul B Mahol: > Signed-off-by: Paul B Mahol > --- > doc/filters.texi | 13 + > libavfilter/vf_pseudocolor.c | 735 ++- > 2 files changed, 746 insertions(+), 2 deletions(-) > > diff --git a/doc/filters.texi b/doc/filters.texi > index 52458c116d..31577d

[FFmpeg-devel] [PATCH 3/3] avfilter/vf_pseudocolor: add support for commands

2021-01-28 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/vf_pseudocolor.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_pseudocolor.c b/libavfilter/vf_pseudocolor.c index c06edc1812..014e90b00b 100644 --- a/libavfilter/vf_pseudocolor.c +++ b/libavfilter/vf_p

[FFmpeg-devel] [PATCH 2/3] avfilter/vf_pseudocolor: use macro for code that repeats

2021-01-28 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavfilter/vf_pseudocolor.c | 67 +--- 1 file changed, 17 insertions(+), 50 deletions(-) diff --git a/libavfilter/vf_pseudocolor.c b/libavfilter/vf_pseudocolor.c index 655b2a5111..c06edc1812 100644 --- a/libavfilter/vf_pseudocolor.

[FFmpeg-devel] [PATCH 1/3] avfilter/vf_pseudocolor: add presets

2021-01-28 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi | 13 + libavfilter/vf_pseudocolor.c | 735 ++- 2 files changed, 746 insertions(+), 2 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 52458c116d..31577d7ddf 100644 --- a/doc/filters.

Re: [FFmpeg-devel] [PATCH] avformat/mxf: Establish register of local tags

2021-01-28 Thread Tomas Härdin
tor 2021-01-28 klockan 08:56 +0100 skrev Marton Balint: > > On Thu, 28 Jan 2021, Tomas Härdin wrote: > > > ons 2021-01-27 klockan 23:50 +0100 skrev Marton Balint: > > > On Wed, 27 Jan 2021, Tomas Härdin wrote: > > > > > > > ons 2021-01-27 klockan 22:24 +0100 skrev Tomas Härdin: > > > > > ons 202

Re: [FFmpeg-devel] [PATCH v4 3/3] avformat/mxfenc: prefer to use the configured metadta

2021-01-28 Thread Tomas Härdin
tor 2021-01-28 klockan 21:08 +0800 skrev lance.lmw...@gmail.com: > On Thu, Jan 28, 2021 at 10:26:03AM +0100, emco...@ffastrans.com wrote: > > Am 2021-01-28 02:21, schrieb lance.lmw...@gmail.com: > > > I haven't found the s337m freely, so I'm not sure about the Platforma > > > metadata. > > > I thin

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/msmpeg4dec: Don't check for errors for complete VLCs

2021-01-28 Thread Andreas Rheinhardt
Andreas Rheinhardt: > This also affected other users of VLCs from msmpeg4dec, namely vc1_block > and wmv2dec. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/msmpeg4.h| 2 +- > libavcodec/msmpeg4dec.c | 20 ++-- > libavcodec/vc1_block.c | 12 > libavco

Re: [FFmpeg-devel] [PATCH v4 3/3] avformat/mxfenc: prefer to use the configured metadta

2021-01-28 Thread lance . lmwang
On Thu, Jan 28, 2021 at 10:26:03AM +0100, emco...@ffastrans.com wrote: > Am 2021-01-28 02:21, schrieb lance.lmw...@gmail.com: > > I haven't found the s337m freely, so I'm not sure about the Platforma > > metadata. > > I think we haven't support the field yet, I guess it's 0x3C08 tag, but I > > have

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/xbmenc: Allow for making UW images

2021-01-28 Thread Paul B Mahol
Gonna apply this set soon. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH v4 3/3] avformat/mxfenc: prefer to use the configured metadta

2021-01-28 Thread emcodem
Am 2021-01-28 02:21, schrieb lance.lmw...@gmail.com: I haven't found the s337m freely, so I'm not sure about the Platforma metadata. I think we haven't support the field yet, I guess it's 0x3C08 tag, but I haven't the document in hand so it's not OK to add it by me. Yeah the SMPTE are unfortu