Re: [FFmpeg-devel] [PATCH] fate: Add h264 test for frame num gaps

2016-12-09 Thread Michael Niedermayer
On Fri, Dec 09, 2016 at 03:21:11PM +, Derek Buitenhuis wrote: > Signed-off-by: Derek Buitenhuis > --- > Sample is here: > https://trac.ffmpeg.org/attachment/ticket/5458/nondeterministic_cut.h264 > --- > tests/fate/h264.mak | 2 ++ >

Re: [FFmpeg-devel] [PATCH 1/2] opus_parser: fix leaking channel_maps on error

2016-12-09 Thread Michael Niedermayer
On Fri, Dec 09, 2016 at 11:42:59PM +0100, Andreas Cadhalpun wrote: > On 09.12.2016 15:23, Michael Niedermayer wrote: > > On Fri, Dec 09, 2016 at 12:08:10AM +0100, Andreas Cadhalpun wrote: > >> Signed-off-by: Andreas Cadhalpun > >> --- > >>

Re: [FFmpeg-devel] [PATCH] fate: Add h264 test for frame num gaps

2016-12-09 Thread Michael Niedermayer
On Fri, Dec 09, 2016 at 03:21:11PM +, Derek Buitenhuis wrote: > Signed-off-by: Derek Buitenhuis > --- > Sample is here: > https://trac.ffmpeg.org/attachment/ticket/5458/nondeterministic_cut.h264 > --- > tests/fate/h264.mak | 2 ++ >

Re: [FFmpeg-devel] [PATCH] avcodec/mpeg12dec: Add FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM

2016-12-09 Thread Michael Niedermayer
On Sat, Dec 10, 2016 at 12:11:35AM +0100, Andreas Cadhalpun wrote: > On 09.12.2016 02:50, Michael Niedermayer wrote: > > On Fri, Dec 09, 2016 at 01:02:08AM +0100, Andreas Cadhalpun wrote: > >> On 08.12.2016 22:53, Michael Niedermayer wrote: > >>> This decreases the amount of computations and

Re: [FFmpeg-devel] [PATCH 2/2] opus_parser: replace ff_parse_close with opus_parse_close

2016-12-09 Thread Hendrik Leppkes
On Fri, Dec 9, 2016 at 11:46 PM, Andreas Cadhalpun wrote: > On 09.12.2016 15:02, Hendrik Leppkes wrote: >> On Fri, Dec 9, 2016 at 12:09 AM, Andreas Cadhalpun >> wrote: >>> The former expects priv_data to be the ParseContext

Re: [FFmpeg-devel] [PATCH] lavf: add ffprobe demuxer

2016-12-09 Thread Andreas Cadhalpun
On 09.12.2016 15:55, Stefano Sabatini wrote: > On date Friday 2016-11-25 11:58:42 +0100, Nicolas George encoded: >> Le quintidi 5 frimaire, an CCXXV, Andreas Cadhalpun a écrit : >>> I think a better idea would be to require '-strict experimental', >>> as code disabled by default does neither get

Re: [FFmpeg-devel] [DECISION] Revoke the decision of dropping ffserver

2016-12-09 Thread Andreas Cadhalpun
On 09.12.2016 10:26, wm4 wrote: > On Fri, 9 Dec 2016 00:30:24 +0100 > Andreas Cadhalpun wrote: > >> On 08.12.2016 15:53, wm4 wrote: >>> (I'm still waiting for related work to be merged from Libav). >> >> Why don't you merge it yourself instead of waiting for

Re: [FFmpeg-devel] [PATCH] avcodec/mpeg12dec: Add FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM

2016-12-09 Thread Andreas Cadhalpun
On 09.12.2016 02:50, Michael Niedermayer wrote: > On Fri, Dec 09, 2016 at 01:02:08AM +0100, Andreas Cadhalpun wrote: >> On 08.12.2016 22:53, Michael Niedermayer wrote: >>> This decreases the amount of computations and memory needed for analysing >>> mpeg1/2 streams >>> >>> Signed-off-by: Michael

Re: [FFmpeg-devel] [PATCH 2/2] opus_parser: replace ff_parse_close with opus_parse_close

2016-12-09 Thread Andreas Cadhalpun
On 09.12.2016 15:02, Hendrik Leppkes wrote: > On Fri, Dec 9, 2016 at 12:09 AM, Andreas Cadhalpun > wrote: >> The former expects priv_data to be the ParseContext directly, so using >> it does not work. >> > > As an alternative re-order the OpusParseContext so

Re: [FFmpeg-devel] [PATCH 1/2] opus_parser: fix leaking channel_maps on error

2016-12-09 Thread Andreas Cadhalpun
On 09.12.2016 15:23, Michael Niedermayer wrote: > On Fri, Dec 09, 2016 at 12:08:10AM +0100, Andreas Cadhalpun wrote: >> Signed-off-by: Andreas Cadhalpun >> --- >> libavcodec/opus_parser.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git

Re: [FFmpeg-devel] [PATCH] avformat/options_table: Set the default maximum number of streams to 100

2016-12-09 Thread Michael Niedermayer
On Fri, Dec 09, 2016 at 08:33:29PM +0100, Marton Balint wrote: > > On Fri, 9 Dec 2016, Michael Niedermayer wrote: > > >On Thu, Dec 08, 2016 at 09:47:53PM +0100, Nicolas George wrote: > >>L'octidi 18 frimaire, an CCXXV, Michael Niedermayer a écrit : > >>>A. Is a heap limit for av_*alloc*()

[FFmpeg-devel] [PATCH] avutil/log: avoid build error if valgrind was removed after configure

2016-12-09 Thread Andreas Oberritter
In an automated build system, where valgrind and ffmpeg get updated in parallel, a race condition may occur in which valgrind/valgrind.h is available when configure runs but not if libavutil/log.c gets compiled. Using CONFIG_VALGRIND_BACKTRACE helps to avoid this problem, because it allows to

Re: [FFmpeg-devel] [PATCH] Support limiting the number of pixels per image

2016-12-09 Thread Michael Niedermayer
On Fri, Dec 09, 2016 at 12:45:22AM +0100, Andreas Cadhalpun wrote: > On 08.12.2016 19:30, Michael Niedermayer wrote: > > TODO: split into 2 patches (one per lib), docs & bump > > > > This allows preventing some OOM and "slow decoding" cases by limiting the > > maximum resolution > > this may be

Re: [FFmpeg-devel] [PATCH] Support limiting the number of pixels per image

2016-12-09 Thread Paul B Mahol
On 12/9/16, Michael Niedermayer wrote: > Adds av_image_check_size2() with max_pixels and pix_fmt parameters. > pix_fmt is unused and is added to avoid a 2nd API change later > > The old function uses AVOptions to obtain the max_pixels value to simplify > the transition. >

Re: [FFmpeg-devel] [PATCH] Support limiting the number of pixels per image

2016-12-09 Thread Marton Balint
On Fri, 9 Dec 2016, Michael Niedermayer wrote: Adds av_image_check_size2() with max_pixels and pix_fmt parameters. pix_fmt is unused and is added to avoid a 2nd API change later The old function uses AVOptions to obtain the max_pixels value to simplify the transition. TODO: split into 2

Re: [FFmpeg-devel] [PATCH] avformat/options_table: Set the default maximum number of streams to 100

2016-12-09 Thread Marton Balint
On Fri, 9 Dec 2016, Michael Niedermayer wrote: On Thu, Dec 08, 2016 at 09:47:53PM +0100, Nicolas George wrote: L'octidi 18 frimaire, an CCXXV, Michael Niedermayer a écrit : A. Is a heap limit for av_*alloc*() acceptable ? B. Are case based limits acceptable ? No. This is the task of the

[FFmpeg-devel] [PATCH] Support limiting the number of pixels per image

2016-12-09 Thread Michael Niedermayer
Adds av_image_check_size2() with max_pixels and pix_fmt parameters. pix_fmt is unused and is added to avoid a 2nd API change later The old function uses AVOptions to obtain the max_pixels value to simplify the transition. TODO: split into 2 patches (one per lib), docs & bump This allows

Re: [FFmpeg-devel] [PATCH] Support limiting the number of pixels per image

2016-12-09 Thread wm4
On Fri, 9 Dec 2016 14:11:30 +0100 Michael Niedermayer wrote: > On Fri, Dec 09, 2016 at 10:14:14AM +0100, wm4 wrote: > > On Thu, 8 Dec 2016 19:30:25 +0100 > > Michael Niedermayer wrote: > > > > > TODO: split into 2 patches (one per lib), docs &

[FFmpeg-devel] [PATCH] Save FFmpeg colorspace info in openh264 video files.

2016-12-09 Thread Gregory J. Wolfe
As of version 1.6, libopenh264 saves (in the output video file) information about the color primaries, transfer characteristics, and color matrix used when the video pixel data was created. This patch sets the required libopenh264 data structures using the FFmpeg colorspace information so that

Re: [FFmpeg-devel] [PATCH 1/2] Avoid using the term "file" and prefer "url" in some docs and comments

2016-12-09 Thread wm4
On Fri, 9 Dec 2016 14:33:08 +0100 Michael Niedermayer wrote: > On Fri, Dec 09, 2016 at 09:55:52AM +0100, wm4 wrote: > > On Fri, 9 Dec 2016 03:48:39 +0100 > > Michael Niedermayer wrote: > > > > > On Thu, Dec 08, 2016 at 11:13:16AM -0900, Lou

Re: [FFmpeg-devel] [PATCH 1/2] Avoid using the term "file" and prefer "url" in some docs and comments

2016-12-09 Thread wm4
On Fri, 9 Dec 2016 14:45:24 +0100 Michael Niedermayer wrote: > On Fri, Dec 09, 2016 at 09:53:00AM +0100, wm4 wrote: > > On Mon, 5 Dec 2016 21:10:00 +0100 > > Michael Niedermayer wrote: > > > > > On Mon, Dec 05, 2016 at 01:52:50PM +0100, Michael

Re: [FFmpeg-devel] [PATCH] libavcodec/tests: Add avpacket test to .gitignore

2016-12-09 Thread Michael Niedermayer
On Fri, Dec 09, 2016 at 03:22:52PM +, Derek Buitenhuis wrote: > Signed-off-by: Derek Buitenhuis > --- > Happened to notice this when adding a FATE test. > --- > libavcodec/tests/.gitignore | 1 + > 1 file changed, 1 insertion(+) LGTM thx [...] -- Michael

[FFmpeg-devel] [PATCH] libavcodec/tests: Add avpacket test to .gitignore

2016-12-09 Thread Derek Buitenhuis
Signed-off-by: Derek Buitenhuis --- Happened to notice this when adding a FATE test. --- libavcodec/tests/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/tests/.gitignore b/libavcodec/tests/.gitignore index d8ab947abe..0ab029696d 100644 ---

[FFmpeg-devel] [PATCH] avcodec/flacdec: Check for invalid vlcs

2016-12-09 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- libavcodec/flacdec.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index af81115ff8..0fffc2dd94 100644 --- a/libavcodec/flacdec.c +++ b/libavcodec/flacdec.c @@

[FFmpeg-devel] [PATCH] fate: Add h264 test for frame num gaps

2016-12-09 Thread Derek Buitenhuis
Signed-off-by: Derek Buitenhuis --- Sample is here: https://trac.ffmpeg.org/attachment/ticket/5458/nondeterministic_cut.h264 --- tests/fate/h264.mak | 2 ++ tests/ref/fate/h264-missing-frame | 35 +++ 2 files changed, 37

Re: [FFmpeg-devel] [PATCH] lavf: add ffprobe demuxer

2016-12-09 Thread Hendrik Leppkes
On Fri, Dec 9, 2016 at 3:59 PM, Nicolas George wrote: > Le nonidi 19 frimaire, an CCXXV, Stefano Sabatini a écrit : >> -strict is for codecs, there is no such thing at the moment for >> muxers/demuxers (so it should be implemented for muxers/demuxers). > > AVFormatContext has

Re: [FFmpeg-devel] [PATCH v3] h264_slice: Wait for refs to be available before we use them in error concealment

2016-12-09 Thread Derek Buitenhuis
On 12/9/2016 2:29 PM, Michael Niedermayer wrote: > this looks reasonable Pushed. - Derek ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] lavf: add ffprobe demuxer

2016-12-09 Thread Nicolas George
Le nonidi 19 frimaire, an CCXXV, Stefano Sabatini a écrit : > -strict is for codecs, there is no such thing at the moment for > muxers/demuxers (so it should be implemented for muxers/demuxers). AVFormatContext has strict_std_compliance too. Regards, -- Nicolas George

Re: [FFmpeg-devel] [PATCH] lavf: add ffprobe demuxer

2016-12-09 Thread Stefano Sabatini
On date Friday 2016-11-25 11:58:42 +0100, Nicolas George encoded: > Le quintidi 5 frimaire, an CCXXV, Andreas Cadhalpun a écrit : > > I think a better idea would be to require '-strict experimental', > > as code disabled by default does neither get build- nor FATE-tested > > much. > > That is an

Re: [FFmpeg-devel] [PATCHv4] avformat: parse iTunes gapless information

2016-12-09 Thread Michael Niedermayer
On Thu, Dec 08, 2016 at 01:12:07PM -0800, Christopher Snowhill wrote: > --- > libavformat/mp3dec.c | 70 > +++- > 1 file changed, 69 insertions(+), 1 deletion(-) > > diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c > index 56c7f8c..47f4028

Re: [FFmpeg-devel] [PATCH v3] h264_slice: Wait for refs to be available before we use them in error concealment

2016-12-09 Thread Michael Niedermayer
On Thu, Dec 08, 2016 at 04:55:49PM +, Derek Buitenhuis wrote: > This could happen when there was a frame number gap and frame threading was > used. > > This fixes #5458. > > Debugging-by: Ronald S. Bultje > Debugging-by: Justin Ruggles >

Re: [FFmpeg-devel] [PATCH 1/2] opus_parser: fix leaking channel_maps on error

2016-12-09 Thread Michael Niedermayer
On Fri, Dec 09, 2016 at 12:08:10AM +0100, Andreas Cadhalpun wrote: > Signed-off-by: Andreas Cadhalpun > --- > libavcodec/opus_parser.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/opus_parser.c b/libavcodec/opus_parser.c >

Re: [FFmpeg-devel] [PATCH 1/2] fate: improve fate-mov dependencies

2016-12-09 Thread James Almer
On 12/9/2016 9:18 AM, Michael Niedermayer wrote: > On Thu, Dec 08, 2016 at 03:11:03PM -0300, James Almer wrote: >> Signed-off-by: James Almer >> --- >> tests/fate/mov.mak | 20 +--- >> 1 file changed, 9 insertions(+), 11 deletions(-) > > should be ok Set

Re: [FFmpeg-devel] [PATCH] avformat/options_table: Set the default maximum number of streams to 100

2016-12-09 Thread Michael Niedermayer
On Fri, Dec 09, 2016 at 11:35:08AM +0100, Nicolas George wrote: > Le nonidi 19 frimaire, an CCXXV, Michael Niedermayer a écrit : > > > > A. Is a heap limit for av_*alloc*() acceptable ? > > > moving the threshold of where to declare something OOM or hang around > > will not solve this. > > Yet

Re: [FFmpeg-devel] [PATCH 2/2] opus_parser: replace ff_parse_close with opus_parse_close

2016-12-09 Thread Hendrik Leppkes
On Fri, Dec 9, 2016 at 12:09 AM, Andreas Cadhalpun wrote: > The former expects priv_data to be the ParseContext directly, so using > it does not work. > As an alternative re-order the OpusParseContext so that ParseContext comes first, it then would work, and

Re: [FFmpeg-devel] [PATCH 1/2] Avoid using the term "file" and prefer "url" in some docs and comments

2016-12-09 Thread Michael Niedermayer
On Fri, Dec 09, 2016 at 09:53:00AM +0100, wm4 wrote: > On Mon, 5 Dec 2016 21:10:00 +0100 > Michael Niedermayer wrote: > > > On Mon, Dec 05, 2016 at 01:52:50PM +0100, Michael Niedermayer wrote: > > > This should make it less ambigous that these are URLs > > > > > >

Re: [FFmpeg-devel] [PATCH 1/2] Avoid using the term "file" and prefer "url" in some docs and comments

2016-12-09 Thread Michael Niedermayer
On Fri, Dec 09, 2016 at 09:55:52AM +0100, wm4 wrote: > On Fri, 9 Dec 2016 03:48:39 +0100 > Michael Niedermayer wrote: > > > On Thu, Dec 08, 2016 at 11:13:16AM -0900, Lou Logan wrote: > > > On Mon, 5 Dec 2016 13:52:50 +0100, Michael Niedermayer wrote: > > > > > > >

Re: [FFmpeg-devel] [PATCH] Support limiting the number of pixels per image

2016-12-09 Thread Michael Niedermayer
On Fri, Dec 09, 2016 at 10:14:14AM +0100, wm4 wrote: > On Thu, 8 Dec 2016 19:30:25 +0100 > Michael Niedermayer wrote: > > > TODO: split into 2 patches (one per lib), docs & bump > > > > This allows preventing some OOM and "slow decoding" cases by limiting the > >

Re: [FFmpeg-devel] [PATCH 1/2] fate: improve fate-mov dependencies

2016-12-09 Thread Michael Niedermayer
On Thu, Dec 08, 2016 at 03:11:03PM -0300, James Almer wrote: > Signed-off-by: James Almer > --- > tests/fate/mov.mak | 20 +--- > 1 file changed, 9 insertions(+), 11 deletions(-) should be ok [...] -- Michael GnuPG fingerprint:

Re: [FFmpeg-devel] [PATCH 2/2] fate: add a monoscopic spherical matroska test

2016-12-09 Thread Michael Niedermayer
On Thu, Dec 08, 2016 at 03:11:04PM -0300, James Almer wrote: > Signed-off-by: James Almer > --- > Sample can be found in http://0x0.st/Lpj.mkv > > tests/fate/matroska.mak| 4 > tests/ref/fate/matroska-spherical-mono | 16 > 2 files

[FFmpeg-devel] [PATCH] avformat/http: allow content range to set filesize

2016-12-09 Thread PHILIP DE NIER
Hi, Attached patch fixes issue #6007 for me. I think it could improved / extended because the "if (s->seekable == -1 && (!s->is_akamai || s->content_range_len != 2147483647))" is probably better placed http_read_header along with the similar is_mediagateway workaround. I wasn't sure whether the

Re: [FFmpeg-devel] [PATCH] avformat/options_table: Set the default maximum number of streams to 100

2016-12-09 Thread Ronald S. Bultje
Hi, On Thu, Dec 8, 2016 at 7:03 PM, Andreas Cadhalpun < andreas.cadhal...@googlemail.com> wrote: > On 08.12.2016 22:59, Carl Eugen Hoyos wrote: > > 2016-12-08 18:37 GMT+01:00 Michael Niedermayer : > > > >> -{"max_streams", "maximum number of streams", OFFSET(max_streams),

Re: [FFmpeg-devel] [PATCHv2] avfilter/formats: allow unknown channel layouts by default

2016-12-09 Thread Nicolas George
L'octidi 18 frimaire, an CCXXV, Marton Balint a écrit : > Since the default in the libav fork is to only allow known layouts, making > unknown layouts allowed by default here can be a security risk for filters > directly merged from libav. However, usually it is simple to detect such > cases, >

Re: [FFmpeg-devel] [PATCH] avformat/options_table: Set the default maximum number of streams to 100

2016-12-09 Thread Nicolas George
Le nonidi 19 frimaire, an CCXXV, Michael Niedermayer a écrit : > > > A. Is a heap limit for av_*alloc*() acceptable ? > moving the threshold of where to declare something OOM or hang around > will not solve this. Yet this is your "A" proposal. Or am I misunderstanding you? Regards, --

Re: [FFmpeg-devel] [DECISION] Revoke the decision of dropping ffserver

2016-12-09 Thread wm4
On Fri, 9 Dec 2016 00:30:24 +0100 Andreas Cadhalpun wrote: > On 08.12.2016 15:53, wm4 wrote: > > (I'm still waiting for related work to be merged from Libav). > > Why don't you merge it yourself instead of waiting for others? The commit to be merged next

Re: [FFmpeg-devel] [PATCH] Support limiting the number of pixels per image

2016-12-09 Thread wm4
On Thu, 8 Dec 2016 19:30:25 +0100 Michael Niedermayer wrote: > TODO: split into 2 patches (one per lib), docs & bump > > This allows preventing some OOM and "slow decoding" cases by limiting the > maximum resolution > this may be useful to avoid fuzzers getting stuck

Re: [FFmpeg-devel] [PATCH] avformat/options_table: Set the default maximum number of streams to 100

2016-12-09 Thread wm4
On Thu, 8 Dec 2016 20:57:05 +0100 Michael Niedermayer wrote: > On Thu, Dec 08, 2016 at 07:48:46PM +0100, wm4 wrote: > > On Thu, 8 Dec 2016 19:36:20 +0100 > > Michael Niedermayer wrote: > > > > > On Thu, Dec 08, 2016 at 07:25:59PM +0100, wm4

Re: [FFmpeg-devel] [PATCH] avformat/options_table: Set the default maximum number of streams to 100

2016-12-09 Thread wm4
On Fri, 9 Dec 2016 02:44:11 +0100 Michael Niedermayer wrote: > On Thu, Dec 08, 2016 at 09:47:53PM +0100, Nicolas George wrote: > > L'octidi 18 frimaire, an CCXXV, Michael Niedermayer a écrit : > > > A. Is a heap limit for av_*alloc*() acceptable ? > > > B. Are case

Re: [FFmpeg-devel] [PATCH 1/2] Avoid using the term "file" and prefer "url" in some docs and comments

2016-12-09 Thread wm4
On Fri, 9 Dec 2016 03:48:39 +0100 Michael Niedermayer wrote: > On Thu, Dec 08, 2016 at 11:13:16AM -0900, Lou Logan wrote: > > On Mon, 5 Dec 2016 13:52:50 +0100, Michael Niedermayer wrote: > > > > > This should make it less ambigous that these are URLs > > > > > >

Re: [FFmpeg-devel] [PATCH 1/2] Avoid using the term "file" and prefer "url" in some docs and comments

2016-12-09 Thread wm4
On Mon, 5 Dec 2016 21:10:00 +0100 Michael Niedermayer wrote: > On Mon, Dec 05, 2016 at 01:52:50PM +0100, Michael Niedermayer wrote: > > This should make it less ambigous that these are URLs > > > > Signed-off-by: Michael Niedermayer > > --- > >