Re: [FFmpeg-devel] [PATCH V1] lavf/showinfo: support mastering display sidedata

2019-08-04 Thread myp...@gmail.com
On Sun, Aug 4, 2019 at 7:00 PM Steven Liu wrote: > > > > > 在 2019年8月4日,18:30,Jun Zhao 写道: > > > > From: Jun Zhao > > > > support mastering display sidedata. > > > > Signed-off-by: Jun Zhao > > --- > > libavfilter/vf_showinfo.c | 30 ++ > > 1 files changed, 30 insert

Re: [FFmpeg-devel] [RFC] samples.ffmpeg.org

2019-08-04 Thread Li, Zhong
> From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Michael Niedermayer > Sent: Monday, August 5, 2019 3:45 AM > To: FFmpeg development discussions and patches > > Subject: Re: [FFmpeg-devel] [RFC] samples.ffmpeg.org > > On Sun, Aug 04, 2019 at 05:42:14PM +0100, Kieran Ku

Re: [FFmpeg-devel] [PATCH v3] iavformat/hlsenc: merge mpegts and fmp4 workflow to one workflow

2019-08-04 Thread Liu Steven
ignore this version patch please, the subject incorrect. > 在 2019年8月5日,上午10:26,Steven Liu 写道: > > write mpegts or fmp4 context into buffer, and flush the buffer into > output file when split fragment. merge two format split workflow into > one workflow > > Signed-off-by: Steven Liu > --- > lib

[FFmpeg-devel] [PATCH v4] avformat/hlsenc: merge mpegts and fmp4 workflow to one workflow

2019-08-04 Thread Steven Liu
just remove the 'i' of the v3 mail subject. write mpegts or fmp4 context into buffer, and flush the buffer into output file when split fragment. merge two format split workflow into one workflow Signed-off-by: Steven Liu --- libavformat/hlsenc.c | 251 +--

[FFmpeg-devel] [PATCH v3] iavformat/hlsenc: merge mpegts and fmp4 workflow to one workflow

2019-08-04 Thread Steven Liu
write mpegts or fmp4 context into buffer, and flush the buffer into output file when split fragment. merge two format split workflow into one workflow Signed-off-by: Steven Liu --- libavformat/hlsenc.c | 251 +-- 1 file changed, 124 insertions(+), 127 dele

[FFmpeg-devel] [PATCH] compat/cuda: Change inclusion guards

2019-08-04 Thread Andreas Rheinhardt
cuda_runtime.h as well as dynlink_loader.h used nonstandard inclusion guards with an AV_ prefix, although these files are not in an libav*/ path. So change the inclusion guards and adapt the ref file of the source fate test accordingly. Signed-off-by: Andreas Rheinhardt --- compat/cuda/cuda_runt

Re: [FFmpeg-devel] [PATCH] fate: Add cuda_runtime.h to FATE source test ref file

2019-08-04 Thread James Almer
On 8/4/2019 9:34 PM, Andreas Rheinhardt wrote: > Timo Rothenpieler: >> On 04.08.2019 23:52, Andreas Rheinhardt wrote: >>> It uses a nonstandard inclusion guard. >> >> Is there any problem with just fixing the inclusion guard instead? >> I forgot that this exists, but the inclusion guard in it looke

Re: [FFmpeg-devel] [PATCH] fate: Add cuda_runtime.h to FATE source test ref file

2019-08-04 Thread Andreas Rheinhardt
Timo Rothenpieler: > On 04.08.2019 23:52, Andreas Rheinhardt wrote: >> It uses a nonstandard inclusion guard. > > Is there any problem with just fixing the inclusion guard instead? > I forgot that this exists, but the inclusion guard in it looked fairly > standard to me. > Feel free to just fix it

Re: [FFmpeg-devel] [PATCH] fate: Add cuda_runtime.h to FATE source test ref file

2019-08-04 Thread Timo Rothenpieler
On 04.08.2019 23:52, Andreas Rheinhardt wrote: It uses a nonstandard inclusion guard. Is there any problem with just fixing the inclusion guard instead? I forgot that this exists, but the inclusion guard in it looked fairly standard to me. Feel free to just fix it. smime.p7s Description: S

[FFmpeg-devel] [PATCH] fate: Add cuda_runtime.h to FATE source test ref file

2019-08-04 Thread Andreas Rheinhardt
It uses a nonstandard inclusion guard. Signed-off-by: Andreas Rheinhardt --- tests/ref/fate/source | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ref/fate/source b/tests/ref/fate/source index 8e12582ce8..3695238e71 100644 --- a/tests/ref/fate/source +++ b/tests/ref/fate/source @@ -25,

Re: [FFmpeg-devel] [PATCHv2 1/4] avformat/mpegtsenc: fix incorrect PCR selection with multiple programs

2019-08-04 Thread Marton Balint
On Sun, 4 Aug 2019, Marton Balint wrote: @@ -1015,8 +1032,7 @@ static int mpegts_init(AVFormatContext *s) else av_log(s, AV_LOG_VERBOSE, "muxrate %d, ", ts->mux_rate); av_log(s, AV_LOG_VERBOSE, - "pcr every %d pkts, sdt every %d, pat/pmt every %d pkts\\n", - servic

[FFmpeg-devel] [PATCH] Don't send teardown if rtsp_hd_out is null

2019-08-04 Thread Ross Nicholson
From: phunkyfish --- libavformat/rtspdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index 32dff2319c..3a79d1b175 100644 --- a/libavformat/rtspdec.c +++ b/libavformat/rtspdec.c @@ -57,7 +57,7 @@ static int rtsp_read_close(AV

Re: [FFmpeg-devel] [PATCH] Don't send teardown if rtsp_hd_out is null

2019-08-04 Thread Ross Nicholson
Example stream that does not work: rtsp:// 184.72.239.149/vod/mp4:BigBuckBunny_115k.mov Extending the condition allows the stream to be processed correctly. On Sun, 4 Aug 2019 at 22:39, Ross Nicholson wrote: > From: phunkyfish > > --- > libavformat/rtspdec.c | 2 +- > 1 file changed, 1 insert

[FFmpeg-devel] [PATCH] avformat/rtspdec: Don't send teardown if rtsp_hd_out is null

2019-08-04 Thread Ross Nicholson
Example: rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov Extending the condition allows the stream to be processed correctly. 0001-Don-t-send-teardown-if-rtsp_hd_out-is-null.patch Description: Binary data ___ ffmpeg-devel mailing list ffmpeg-devel@

[FFmpeg-devel] [PATCH] avformat/mpegtsenc: fix PCR generation intervals

2019-08-04 Thread Marton Balint
PCR generation was based on counting packets for both CBR and VBR streams. Couting packets might have worked for CBR streams (when muxrate was specified) but it only took into account the packets of a service (or the packets of the PCR stream lately), so even that was problematic for multi program

Re: [FFmpeg-devel] [PATCHv2 1/4] avformat/mpegtsenc: fix incorrect PCR selection with multiple programs

2019-08-04 Thread Marton Balint
On Sun, 4 Aug 2019, Andreas Håkon wrote: Hi Marton, ‐‐‐ Original Message ‐‐‐ v2: a video is stream is preferred if there are no programs, just like before the patch. Thank you for your effort! However, something is wrong with this patch regarding PCR intervals. First, try this e

Re: [FFmpeg-devel] [RFC] samples.ffmpeg.org

2019-08-04 Thread Michael Niedermayer
On Sun, Aug 04, 2019 at 05:42:14PM +0100, Kieran Kunhya wrote: > On Sat, 3 Aug 2019 at 18:35, Michael Niedermayer > wrote: > > > Hi all > > > > It seems we do not have a list of people volunteering to do uploads to > > samples. And no place to send such requests to except here, where they > > som

[FFmpeg-devel] [PATCH v2] libavformat: Add ZeroMQ as a protocol option

2019-08-04 Thread Andriy Gelman
Changes in v2: 1. Replaced zmq_poll with zmq_msg_recv. 2. Remove user timeout option as zmq_msg_recv(.., .., ZMQ_DONTWAIT) is a non-blocking call. 3. Updated docs. Andriy >From 53e6e00d30c9fbf5127eea9d377686d37e981c0c Mon Sep 17 00:00:00 2001 From: Andriy Gelman Date: Tue, 30 Jul 2

Re: [FFmpeg-devel] [PATCH 1/2] build: add support for building CUDA files with clang

2019-08-04 Thread Timo Rothenpieler
On 30.07.2019 09:51, Rodger Combs wrote: This avoids using the CUDA SDK at all; instead, we provide a minimal reimplementation of the basic functionality that lavfi actually uses. It generates very similar code to what NVCC produces. The header contains no implementation code derived from the SD

[FFmpeg-devel] [PATCH 13/13] avcodec/ralf: Fix undefined pointer in decode_channel()

2019-08-04 Thread Michael Niedermayer
Fixes: 16203/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RALF_fuzzer-5086088934195200 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/ralf.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[FFmpeg-devel] [PATCH 06/13] avcodec/cfhd: Fix linesize type

2019-08-04 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/cfhd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c index c770ef3288..a162fc7da3 100644 --- a/libavcodec/cfhd.c +++ b/libavcodec/cfhd.c @@ -808,7 +808,7 @@ static int cfhd_decode(AVCodec

[FFmpeg-devel] [PATCH 11/13] avcodec/vorbisdec: Implement vr->classifications = 1

2019-08-04 Thread Michael Niedermayer
It appears no valid file uses this, so this is not testable with a valid file. Fixes: assertion failure Fixes: 16187/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VORBIS_fuzzer-5638880618872832 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmp

[FFmpeg-devel] [PATCH 08/13] avformat/vividas: Fix memleak of AVIOContext in track_header()

2019-08-04 Thread Michael Niedermayer
Fixes: memleak Fixes: 16127/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5649290914955264 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/vividas.c | 8 ++-- 1 file changed, 6 ins

[FFmpeg-devel] [PATCH 12/13] avcodec/ralf: Fix integer overflow in apply_lpc()

2019-08-04 Thread Michael Niedermayer
Fixes: signed integer overflow: 1603085316 + 1238786562 cannot be represented in type 'int' Fixes: 16203/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RALF_fuzzer-5086088934195200 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-

[FFmpeg-devel] [PATCH 09/13] avformat/realtextdec: Check for duplicate extradata in realtext_read_header()

2019-08-04 Thread Michael Niedermayer
Fixes: memleak Fixes: 16140/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5684008052064256 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/realtextdec.c | 4 1 file changed, 4 ins

[FFmpeg-devel] [PATCH 02/13] avcodec/vc1_block: Check get_vlc2() return before use

2019-08-04 Thread Michael Niedermayer
Fixes: index -1 out of bounds for type 'const uint8_t [185][2]' Fixes: 15720/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSS2_fuzzer-5666071933091840 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer ---

[FFmpeg-devel] [PATCH 10/13] avcodec/vorbisdec: Check parameters in vorbis_floor0_decode() before divide

2019-08-04 Thread Michael Niedermayer
Fixes: division by zero Fixes: 16183/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VORBIS_fuzzer-5688966782648320 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/vorbisdec.c | 3 +++ 1 fil

[FFmpeg-devel] [PATCH 07/13] avcodec/cfhd: Check destination space for bayer before writing

2019-08-04 Thread Michael Niedermayer
Fixes: out of array write Fixes: 16105/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-5690817309573120 Fixes: 16119/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-5099050675732480 Fixes: 16135/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CFHD_fuzzer-57055016014

[FFmpeg-devel] [PATCH 04/13] avcodec/apedec: Fix 2 signed overflows

2019-08-04 Thread Michael Niedermayer
Fixes: left shift of 1073741824 by 1 places cannot be represented in type 'int' Fixes: signed integer overflow: 2049431315 + 262759074 cannot be represented in type 'int' Fixes: 16012/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5719016003338240 Found-by: continuous fuzzing proce

[FFmpeg-devel] [PATCH 05/13] avcodec/cbs_av1_syntax_template: Check ref_frame_idx before use

2019-08-04 Thread Michael Niedermayer
Fixes: index -1 out of bounds for type 'AV1ReferenceFrameState [8]' Fixes: 16079/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5758807440883712 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- liba

[FFmpeg-devel] [PATCH 01/13] avcodec/apedec: Do not partially clear data array

2019-08-04 Thread Michael Niedermayer
Fixes: Assertion failure and memleak Fixes: 15709/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5182435093905408 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/apedec.c | 3 ++-

[FFmpeg-devel] [PATCH 03/13] avcodec/mss3: Check for the rac stream being invalid in rac_normalize()

2019-08-04 Thread Michael Niedermayer
Fixes: out of array read Fixes: 15982/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MSA1_fuzzer-5630676251967488 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/mss3.c | 4 1 file cha

Re: [FFmpeg-devel] [RFC] samples.ffmpeg.org

2019-08-04 Thread Kieran Kunhya
On Sat, 3 Aug 2019 at 18:35, Michael Niedermayer wrote: > Hi all > > It seems we do not have a list of people volunteering to do uploads to > samples. And no place to send such requests to except here, where they > sometimes get ignored. > Just give everyone with push access right to upload. Ki

Re: [FFmpeg-devel] [PATCH] avformat/assenc: Don't truncate lines to 4095 characters

2019-08-04 Thread Marton Balint
On Sun, 4 Aug 2019, Paul B Mahol wrote: On Sun, Aug 4, 2019 at 2:58 PM Marton Balint wrote: On Sun, 4 Aug 2019, Paul B Mahol wrote: > On Sun, Aug 4, 2019 at 12:54 PM Marton Balint wrote: > >> >> >> On Sat, 3 Aug 2019, Tellow Krinkle wrote: >> >> > Fixes #6390 >> > >> > Sample file for n

Re: [FFmpeg-devel] [PATCHv2 1/4] avformat/mpegtsenc: fix incorrect PCR selection with multiple programs

2019-08-04 Thread Andreas Håkon
Hi Marton, ‐‐‐ Original Message ‐‐‐ > v2: a video is stream is preferred if there are no programs, just like before > the patch. Thank you for your effort! However, something is wrong with this patch regarding PCR intervals. First, try this example (using the file shared by Michael htt

Re: [FFmpeg-devel] [PATCH] Fixing HW accelerated decoders hanging or throwing error in h263dec

2019-08-04 Thread Timo Rothenpieler
On 02.08.2019 11:18, Stefan Schoenefeld wrote: Hi all, Recently we encountered an issue when decoding a h.263 file: FFmpeg will freeze when decoding h.263 video with NVDEC. Turns out this is not directly related to NVDEC but is a problem that shows with several other HW decoders like VDPAU, t

Re: [FFmpeg-devel] FFmpeg 4.2

2019-08-04 Thread James Almer
On 8/4/2019 8:08 AM, Timo Rothenpieler wrote: > On 04.08.2019 07:56, Michael Niedermayer wrote: >> On Sun, Jul 21, 2019 at 07:11:40PM +0200, Michael Niedermayer wrote: >>> On Mon, May 20, 2019 at 08:39:45PM +0200, Michael Niedermayer wrote: Hi Its quite some time since 4.1 so its pro

Re: [FFmpeg-devel] [PATCH] avformat/assenc: Don't truncate lines to 4095 characters

2019-08-04 Thread Paul B Mahol
On Sun, Aug 4, 2019 at 2:58 PM Marton Balint wrote: > > > On Sun, 4 Aug 2019, Paul B Mahol wrote: > > > On Sun, Aug 4, 2019 at 12:54 PM Marton Balint wrote: > > > >> > >> > >> On Sat, 3 Aug 2019, Tellow Krinkle wrote: > >> > >> > Fixes #6390 > >> > > >> > Sample file for new test: > >> > https:/

Re: [FFmpeg-devel] [PATCH] avformat/assenc: Don't truncate lines to 4095 characters

2019-08-04 Thread Marton Balint
On Sun, 4 Aug 2019, Paul B Mahol wrote: On Sun, Aug 4, 2019 at 12:54 PM Marton Balint wrote: On Sat, 3 Aug 2019, Tellow Krinkle wrote: > Fixes #6390 > > Sample file for new test: https://gist.githubusercontent.com/tellowkrinkle/d6a6e328f892dbbacc000ad9c3890644/raw/4f68e56b1f0fab594aae040

Re: [FFmpeg-devel] [PATCH] avformat/assenc: Don't truncate lines to 4095 characters

2019-08-04 Thread Paul B Mahol
On Sun, Aug 4, 2019 at 12:54 PM Marton Balint wrote: > > > On Sat, 3 Aug 2019, Tellow Krinkle wrote: > > > Fixes #6390 > > > > Sample file for new test: > https://gist.githubusercontent.com/tellowkrinkle/d6a6e328f892dbbacc000ad9c3890644/raw/4f68e56b1f0fab594aae040723722af4f5161a02/longline.ass >

Re: [FFmpeg-devel] FFmpeg 4.2

2019-08-04 Thread Timo Rothenpieler
On 04.08.2019 07:56, Michael Niedermayer wrote: On Sun, Jul 21, 2019 at 07:11:40PM +0200, Michael Niedermayer wrote: On Mon, May 20, 2019 at 08:39:45PM +0200, Michael Niedermayer wrote: Hi Its quite some time since 4.1 so its probably getting time to branch 4.2. If there are any bugs you want

Re: [FFmpeg-devel] [PATCH V1] lavf/showinfo: support mastering display sidedata

2019-08-04 Thread Steven Liu
> 在 2019年8月4日,18:30,Jun Zhao 写道: > > From: Jun Zhao > > support mastering display sidedata. > > Signed-off-by: Jun Zhao > --- > libavfilter/vf_showinfo.c | 30 ++ > 1 files changed, 30 insertions(+), 0 deletions(-) > > diff --git a/libavfilter/vf_showinfo.c b/l

Re: [FFmpeg-devel] [PATCH] avformat/assenc: Don't truncate lines to 4095 characters

2019-08-04 Thread Marton Balint
On Sat, 3 Aug 2019, Tellow Krinkle wrote: Fixes #6390 Sample file for new test: https://gist.githubusercontent.com/tellowkrinkle/d6a6e328f892dbbacc000ad9c3890644/raw/4f68e56b1f0fab594aae040723722af4f5161a02/longline.ass Signed-off-by: Tellow Krinkle --- libavformat/assenc.c | 4 +++- te

[FFmpeg-devel] [PATCH V1] lavf/showinfo: support mastering display sidedata

2019-08-04 Thread Jun Zhao
From: Jun Zhao support mastering display sidedata. Signed-off-by: Jun Zhao --- libavfilter/vf_showinfo.c | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index f6f8f49..8889c01 100644 --

[FFmpeg-devel] [PATCH V2] doc/ffmpeg: Document dts_error_threshold option

2019-08-04 Thread Jun Zhao
From: Jun Zhao Document dts_error_threshold option. Signed-off-by: Jun Zhao --- doc/ffmpeg.texi |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index cd35eb4..1da18d9 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -1515,6 +15