[FFmpeg-devel] [PATCH] lavc/videotoolboxenc.c: Add trc for iec61966-2-1 when available

2021-07-23 Thread Hao Guan
Signed-off-by: Hao Guan --- Notes: I have checked out the code about other functions introduced after macOS 10.13 and noticed that the availability is checked during configure. Therefore I add the check for sRGB function too. It should compile now. configure| 2 ++ lib

Re: [FFmpeg-devel] [PATCH v3 0/4] avcodec Loongson-2 MMI fixes

2021-07-23 Thread yinshiyou-hf
> -原始邮件- > 发件人: "Jiaxun Yang" > 发送时间: 2021-07-23 13:53:40 (星期五) > 收件人: ffmpeg-devel@ffmpeg.org > 抄送: yinshiyou...@loongson.cn, "Jiaxun Yang" > 主题: [PATCH v3 0/4] avcodec Loongson-2 MMI fixes > > Get MMI optimizations build for Loongson-2 again. > Tested on Loongson-2 and Loongson-3A. >

Re: [FFmpeg-devel] [PATCH v1] configure: fix mmi check

2021-07-23 Thread yinshiyou-hf
> -原始邮件- > 发件人: "Jiaxun Yang" > 发送时间: 2021-07-23 10:34:37 (星期五) > 收件人: ffmpeg-devel@ffmpeg.org > 抄送: > 主题: Re: [FFmpeg-devel] [PATCH v1] configure: fix mmi check > > > 在 2021/7/23 上午9:39, Jin Bo 写道: > > pxor is loongson media extension instruction, it's not > > supported yet on upstream

Re: [FFmpeg-devel] [PATCH v1] configure: fix mmi check

2021-07-23 Thread Jiaxun Yang
在 2021/7/23 17:23, yinshiyou...@loongson.cn 写道: > -原始邮件- > 发件人: "Jiaxun Yang" > 发送时间: 2021-07-23 10:34:37 (星期五) > 收件人: ffmpeg-devel@ffmpeg.org > 抄送: > 主题: Re: [FFmpeg-devel] [PATCH v1] configure: fix mmi check > > > 在 2021/7/23 上午9:39, Jin Bo 写道: > > pxor is loongson media extension ins

[FFmpeg-devel] [PATCH 1/2] avcodec/noise: don't force non-zero value for amount

2021-07-23 Thread Gyan Doshi
Currently, the user is forced to accept some noise in packet payload, even if not requested. --- doc/bitstream_filters.texi | 13 + libavcodec/noise_bsf.c | 21 +++-- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/doc/bitstream_filters.texi b/doc/b

[FFmpeg-devel] [PATCH 2/2] avcodec/noise: allow various cadence for dropping packets

2021-07-23 Thread Gyan Doshi
Packets can now be dropped at fixed intervals or with varying degrees of irregularity --- doc/bitstream_filters.texi | 22 + libavcodec/noise_bsf.c | 65 ++ libavcodec/version.h | 2 +- 3 files changed, 74 insertions(+), 15 deletions(-) d

Re: [FFmpeg-devel] [PATCH v1] configure: fix mmi check

2021-07-23 Thread yinshiyou-hf
> -原始邮件- > 发件人: "Jiaxun Yang" > 发送时间: 2021-07-23 17:27:18 (星期五) > 收件人: yinshiyou...@loongson.cn, "FFmpeg development discussions and patches" > 抄送: "金波" > 主题: Re: [FFmpeg-devel] [PATCH v1] configure: fix mmi check > > > 在 2021/7/23 17:23, yinshiyou...@loongson.cn 写道: > > > -原始邮

Re: [FFmpeg-devel] [PATCH 2/3] avutil/film_grain_params: add support for H.274 Film Grain Characteristics

2021-07-23 Thread Lynne
22 Jul 2021, 15:44 by jamr...@gmail.com: > Used by codecs like H.264, HEVC, and VVC. > > Signed-off-by: James Almer > --- > Missing version bump and APIchanges entry. > > libavutil/film_grain_params.h | 89 +++ > 1 file changed, 89 insertions(+) > > diff --git a/l

Re: [FFmpeg-devel] [PATCH] avpacket: ABI bump additions

2021-07-23 Thread Lynne
20 Jul 2021, 00:05 by d...@lynne.ee: > 8 Jul 2021, 21:20 by andreas.rheinha...@outlook.com: > >> Lynne: >> >>> Apr 26, 2021, 03:27 by andreas.rheinha...@outlook.com: >>> Lynne: > From 097aed2ac33dda0bb2052d8b0402711ce95079ba Mon Sep 17 00:00:00 2001 > From: Lynne > Date: Sat

Re: [FFmpeg-devel] [PATCH v4] avformat/libsrt: print streamid at client

2021-07-23 Thread Raghavendra Rao Sidlagatta
On Monday, March 22, 2021 06:45 GMT, "Raghavendra Rao Sidlagatta" wrote:    On Wednesday, January 20, 2021 09:48 GMT, "Raghavendra Rao Sidlagatta" wrote:    On Tuesday, October 06, 2020 08:18 BST, raghavendra wrote:  Print the SRT streamid at the client. Logged to info. Signed-off-by: ragha

[FFmpeg-devel] [PATCH v2 1/2] avcodec/noise: don't force non-zero value for amount

2021-07-23 Thread Gyan Doshi
Currently, the user is forced to accept some noise in packet payload, even if not requested. --- doc/bitstream_filters.texi| 13 +--- libavcodec/noise_bsf.c| 21 +-- tests/fate/matroska.mak | 2 +- .../fate/

[FFmpeg-devel] [PATCH v2 2/2] avcodec/noise: allow various cadence for dropping packets

2021-07-23 Thread Gyan Doshi
Packets can now be dropped at fixed intervals or with varying degrees of irregularity --- doc/bitstream_filters.texi| 22 +++ libavcodec/noise_bsf.c| 65 +++ libavcodec/version.h | 2 +- .../fate/matroska-mas

Re: [FFmpeg-devel] [PATCH] avcodec/tableprint_vlc: Fix building with hardcoded tables

2021-07-23 Thread James Almer
On 7/22/2021 8:38 PM, Andreas Rheinhardt wrote: This has been broken in 25c8507818d8559a6654a5b30a0f8aae11a48181, because the hacks for headers that are incompatible with building for the host in libavcodec/tableprint_vlc.h have not been adjusted. Moving AV_INPUT_BUFFER_PADDING_SIZE to defs.h wh

Re: [FFmpeg-devel] [PATCH] avcodec/utils: don't return negative values in av_get_audio_frame_duration()

2021-07-23 Thread James Almer
On 7/21/2021 1:08 AM, James Almer wrote: In some extrme cases, like with adpcm_ms samples with an extremely high channel count, get_audio_frame_duration() may return a negative frame duration value. Don't propagate it, and instead return 0, signaling that a duration could not be determined. Fixe

Re: [FFmpeg-devel] [PATCH v4] avformat/libsrt: print streamid at client

2021-07-23 Thread zhilizhao(赵志立)
> On Jul 23, 2021, at 5:59 PM, Raghavendra Rao Sidlagatta > wrote: > > > On Monday, March 22, 2021 06:45 GMT, "Raghavendra Rao Sidlagatta" > wrote: > > On Wednesday, January 20, 2021 09:48 GMT, "Raghavendra Rao Sidlagatta" > wrote: > > On Tuesday, October 06, 2020 08:18 BST, raghave

[FFmpeg-devel] [PATCH 1/6] avformat/aviobuf: Make ff_read_line_to_bprint() static

2021-07-23 Thread Andreas Rheinhardt
It is only used in ff_read_line_to_bprint_overwrite(). Signed-off-by: Andreas Rheinhardt --- libavformat/aviobuf.c | 4 ++-- libavformat/internal.h | 13 - 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index ddfa4ecbf1

[FFmpeg-devel] [PATCH 2/6] avformat/internal: Move ff_read_line_to_bprint_overwrite to avio_internal.h

2021-07-23 Thread Andreas Rheinhardt
It only uses an AVIOContext and an AVBPrint. When doing so, it turned out that several non-users of ff_read_line_to_bprint_overwrite() and ff_bprint_to_codecpar_extradata() relied on libavformat/internal.h to include bprint.h or avstring.h for them. In order to avoid a repeat of this and in order

[FFmpeg-devel] [PATCH 3/6] avutil/common, macros: Move several macros from common.h to macros.h

2021-07-23 Thread Andreas Rheinhardt
common.h currently contains several things: Math macros, UTF-8 macros, other fundamental macros; furthermore it also contains miscellaneous math functions and it (directly and indirectly) includes lots of other headers. This commit moves the "other fundamental macros" to macros.h which is a more f

[FFmpeg-devel] [PATCH 4/6] avutil/error: Include macros.h for MKTAG

2021-07-23 Thread Andreas Rheinhardt
Up until now, including error.h alone does not make the AVERROR_* defines usable, because they just expand to something involving MKTAG, but without the header providing MKTAG. So include macros.h, the header providing MKTAG. Signed-off-by: Andreas Rheinhardt --- Since 580e168a945b65100ec2c25433f

[FFmpeg-devel] [PATCH 6/6] postproc/postprocess: Remove legacy cruft

2021-07-23 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libpostproc/postprocess.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/libpostproc/postprocess.h b/libpostproc/postprocess.h index 348ee7cc61..ba456cf3e0 100644 --- a/libpostproc/postprocess.h +++ b/libpostproc/postprocess.h @@ -58,13 +58,7 @@ con

[FFmpeg-devel] [PATCH 5/6] (postproc|swresample)/version: Don't include libavutil/avutil.h

2021-07-23 Thread Andreas Rheinhardt
Instead only include libavutil/version.h; including avutil.h is a remnant from the time in which the version was in it. Signed-off-by: Andreas Rheinhardt --- libpostproc/version.h | 2 +- libswresample/version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libpostproc

Re: [FFmpeg-devel] Task for beginner : lossless JPEG transformations

2021-07-23 Thread Thilo Borgmann
Hi, > In case somebody is looking for a task to begin working on FFmpeg, I > have the following suggestion. > > The program jpegtran, from libjpeg / libjpeg-turbo, can do lossless or > almost-lossless crop and rotate on JPEG, and even overlay with the most > recent versions. > > I think this wou

Re: [FFmpeg-devel] [PATCH] tools/graph2dot: Don't use sizeof(AVFilterGraph), check allocation

2021-07-23 Thread Jan Ekström
On Thu, Jul 22, 2021 at 10:05 AM Andreas Rheinhardt wrote: > > Use avfilter_graph_alloc() instead of av_mallocz(sizeof(AVFilterGraph)) > to allocate an AVFilterGraph; this also properly allocates the graph's > internal. The current code just happened to work because it did not > make any use of sa

Re: [FFmpeg-devel] [PATCH v2 1/2] avcodec/noise: don't force non-zero value for amount

2021-07-23 Thread Michael Niedermayer
On Fri, Jul 23, 2021 at 04:04:49PM +0530, Gyan Doshi wrote: > Currently, the user is forced to accept some noise in > packet payload, even if not requested. > --- > doc/bitstream_filters.texi| 13 +--- > libavcodec/noise_bsf.c| 21 +--

Re: [FFmpeg-devel] [PATCH v2 2/2] avcodec/noise: allow various cadence for dropping packets

2021-07-23 Thread Michael Niedermayer
On Fri, Jul 23, 2021 at 04:04:50PM +0530, Gyan Doshi wrote: > Packets can now be dropped at fixed intervals or > with varying degrees of irregularity > --- > doc/bitstream_filters.texi| 22 +++ > libavcodec/noise_bsf.c| 65 +++ > liba

Re: [FFmpeg-devel] [PATCH v2 1/2] avcodec/noise: don't force non-zero value for amount

2021-07-23 Thread Gyan Doshi
On 2021-07-24 01:14, Michael Niedermayer wrote: On Fri, Jul 23, 2021 at 04:04:49PM +0530, Gyan Doshi wrote: Currently, the user is forced to accept some noise in packet payload, even if not requested. --- doc/bitstream_filters.texi| 13 +--- libavcodec/noise_bsf

Re: [FFmpeg-devel] Fwd: Re: [PATCH] mxfdec.c: prefer metadata from Footer

2021-07-23 Thread emcodem
Am 2021-07-04 20:31, schrieb emco...@ffastrans.com: Am 2021-07-04 20:28, schrieb emco...@ffastrans.com: Am 2021-07-04 17:28, schrieb Marton Balint: On Sat, 3 Jul 2021, Tomas Härdin wrote: lör 2021-07-03 klockan 15:13 +0200 skrev emco...@ffastrans.com: Unfortunately the wetransfer link for t

Re: [FFmpeg-devel] [PATCH] libavcodec/mpeg12dec.c: Switch to init_get_bits8 and checks return value

2021-07-23 Thread Michael Niedermayer
On Thu, Jul 22, 2021 at 11:08:51AM -0700, Thierry Foucu wrote: > --- > libavcodec/mpeg12dec.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c > index b27ed5bd6d..269619540a 100644 > --- a/libavcodec/mpeg12dec.c > +++ b/l

Re: [FFmpeg-devel] [PATCH][libavcodec] Adding sprite support to duck truemotion1

2021-07-23 Thread Alireza Heidar-Barghi
Hello, I got all your emails in my spam. Regards, Alireza On Thursday, July 22, 2021, 05:06:53 PM EDT, ffmpegandmahanstreamer@e.email wrote: Yes, i have them, obviously. >From the mahanstreamer maintainer: >https://drive.google.com/drive/folders/1L0b4h3sYc_fWFTdndtRO5vGSNmLW3pGD?usp=s

Re: [FFmpeg-devel] [PATCH v2 1/2] avcodec/noise: don't force non-zero value for amount

2021-07-23 Thread Michael Niedermayer
On Sat, Jul 24, 2021 at 01:24:54AM +0530, Gyan Doshi wrote: > > > On 2021-07-24 01:14, Michael Niedermayer wrote: > > On Fri, Jul 23, 2021 at 04:04:49PM +0530, Gyan Doshi wrote: > > > Currently, the user is forced to accept some noise in > > > packet payload, even if not requested. > > > --- > >

Re: [FFmpeg-devel] [PATCH] tools/graph2dot: Don't use sizeof(AVFilterGraph), check allocation

2021-07-23 Thread Andreas Rheinhardt
Jan Ekström: > On Thu, Jul 22, 2021 at 10:05 AM Andreas Rheinhardt > wrote: >> >> Use avfilter_graph_alloc() instead of av_mallocz(sizeof(AVFilterGraph)) >> to allocate an AVFilterGraph; this also properly allocates the graph's >> internal. The current code just happened to work because it did not

[FFmpeg-devel] [PATCH] avformat/mov: Fix crash with too big STSZ atoms

2021-07-23 Thread Andreas Rheinhardt
mov_read_stsz() did not ensure that every bit of a buffer is addressable by an int as is required by the get_bits API, leading to a crash in ticket #9344. Fix this by restricting the size more thoroughly. The file from said ticket will then be considered invalid; in the future, we might read and p

Re: [FFmpeg-devel] [PATCH v2 1/2] avcodec/noise: don't force non-zero value for amount

2021-07-23 Thread Gyan Doshi
On 2021-07-24 03:19, Michael Niedermayer wrote: On Sat, Jul 24, 2021 at 01:24:54AM +0530, Gyan Doshi wrote: On 2021-07-24 01:14, Michael Niedermayer wrote: On Fri, Jul 23, 2021 at 04:04:49PM +0530, Gyan Doshi wrote: Currently, the user is forced to accept some noise in packet payload, even

Re: [FFmpeg-devel] [PATCH v2 1/2] avcodec/noise: don't force non-zero value for amount

2021-07-23 Thread Andreas Rheinhardt
Gyan Doshi: > > > On 2021-07-24 03:19, Michael Niedermayer wrote: >> On Sat, Jul 24, 2021 at 01:24:54AM +0530, Gyan Doshi wrote: >>> >>> On 2021-07-24 01:14, Michael Niedermayer wrote: On Fri, Jul 23, 2021 at 04:04:49PM +0530, Gyan Doshi wrote: > Currently, the user is forced to accept s

[FFmpeg-devel] [PATCH] avformat/mov: Remove pointless EOF checks

2021-07-23 Thread Andreas Rheinhardt
9888ffb1ce5e0a17f711b01933d504c72ea29d3b added checks for EOF in loops in the mov demuxer as a precaution against timeouts; yet there is no I/O in the loop when parsing the STSZ atom as the values are read from an already read buffer. So remove said checks. Signed-off-by: Andreas Rheinhardt ---

Re: [FFmpeg-devel] [PATCH v2 1/2] avcodec/noise: don't force non-zero value for amount

2021-07-23 Thread Gyan Doshi
On 2021-07-24 09:55, Andreas Rheinhardt wrote: Gyan Doshi: On 2021-07-24 03:19, Michael Niedermayer wrote: On Sat, Jul 24, 2021 at 01:24:54AM +0530, Gyan Doshi wrote: On 2021-07-24 01:14, Michael Niedermayer wrote: On Fri, Jul 23, 2021 at 04:04:49PM +0530, Gyan Doshi wrote: Currently, the