Re: [FFmpeg-devel] [PATCH] avformat: drop libquvi demuxer

2015-04-28 Thread Lou Logan
On Wed, Apr 22, 2015, at 12:55 PM, Carl Eugen Hoyos wrote: > > Shouldn't this be deprecated and removed after > the next release? I'm fine with that, but I don't think I'll have the motivation or time to do so (I should really be working on the server), so it will block this patch. However, feel

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/dca_parser: Extend DTS core sync word

2015-04-28 Thread foo86
On Tue, Apr 28, 2015 at 07:27:06PM +0200, Michael Niedermayer wrote: > On Tue, Apr 28, 2015 at 05:45:35PM +0300, foo86 wrote: > > Check extended sync word for 16-bit LE and BE core streams to reduce > > probability of alias sync detection. Previously sync word extension was > > checked only for 14

Re: [FFmpeg-devel] [PATCH 1/3] nutdec: fix illegal count check in decode_main_header

2015-04-28 Thread Michael Niedermayer
On Tue, Apr 28, 2015 at 10:39:40PM +0200, Andreas Cadhalpun wrote: > On 28.04.2015 22:21, Michael Niedermayer wrote: > > On Tue, Apr 28, 2015 at 08:57:39PM +0200, Andreas Cadhalpun wrote: > >> The existing check has two problems: > >> 1) i + count can overflow, so that the check '< 256' returns tr

Re: [FFmpeg-devel] [PATCH 3/3] nutdec: fix memleaks on error in nut_read_header

2015-04-28 Thread Andreas Cadhalpun
On 28.04.2015 22:55, Michael Niedermayer wrote: > On Tue, Apr 28, 2015 at 08:58:21PM +0200, Andreas Cadhalpun wrote: >> Signed-off-by: Andreas Cadhalpun > [...] >> @@ -806,7 +811,10 @@ static int nut_read_header(AVFormatContext *s) >> >> ff_metadata_conv_ctx(s, NULL, ff_nut_metadata_conv);

Re: [FFmpeg-devel] [PATCH 3/3] nutdec: fix memleaks on error in nut_read_header

2015-04-28 Thread Michael Niedermayer
On Tue, Apr 28, 2015 at 08:58:21PM +0200, Andreas Cadhalpun wrote: > Signed-off-by: Andreas Cadhalpun [...] > @@ -806,7 +811,10 @@ static int nut_read_header(AVFormatContext *s) > > ff_metadata_conv_ctx(s, NULL, ff_nut_metadata_conv); > > -return 0; > +end: > +if (ret < 0) > +

Re: [FFmpeg-devel] [PATCH 3/3] nutdec: fix memleaks on error in nut_read_header

2015-04-28 Thread Michael Niedermayer
On Tue, Apr 28, 2015 at 08:58:21PM +0200, Andreas Cadhalpun wrote: > Signed-off-by: Andreas Cadhalpun > --- > libavformat/nutdec.c | 18 +- > 1 file changed, 13 insertions(+), 5 deletions(-) applied thanks [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC78

Re: [FFmpeg-devel] [PATCH 2/3] nutdec: check chapter creation in decode_info_header

2015-04-28 Thread Andreas Cadhalpun
On 28.04.2015 22:33, Michael Niedermayer wrote: > On Tue, Apr 28, 2015 at 08:57:59PM +0200, Andreas Cadhalpun wrote: >> This fixes a segmentation fault when accessing the metadata. >> >> Signed-off-by: Andreas Cadhalpun >> --- >> libavformat/nutdec.c | 4 >> 1 file changed, 4 insertions(+) >

Re: [FFmpeg-devel] [PATCH 1/3] nutdec: fix illegal count check in decode_main_header

2015-04-28 Thread Andreas Cadhalpun
On 28.04.2015 22:21, Michael Niedermayer wrote: > On Tue, Apr 28, 2015 at 08:57:39PM +0200, Andreas Cadhalpun wrote: >> The existing check has two problems: >> 1) i + count can overflow, so that the check '< 256' returns true. >> 2) In the (i == 'N') case occurs a j-- so that the loop runs once m

Re: [FFmpeg-devel] [PATCH 2/3] nutdec: check chapter creation in decode_info_header

2015-04-28 Thread Michael Niedermayer
On Tue, Apr 28, 2015 at 08:57:59PM +0200, Andreas Cadhalpun wrote: > This fixes a segmentation fault when accessing the metadata. > > Signed-off-by: Andreas Cadhalpun > --- > libavformat/nutdec.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/libavformat/nutdec.c b/libavformat/nut

Re: [FFmpeg-devel] [PATCH 1/3] nutdec: fix illegal count check in decode_main_header

2015-04-28 Thread Michael Niedermayer
On Tue, Apr 28, 2015 at 08:57:39PM +0200, Andreas Cadhalpun wrote: > The existing check has two problems: > 1) i + count can overflow, so that the check '< 256' returns true. > 2) In the (i == 'N') case occurs a j-- so that the loop runs once more. > > This can trigger the assertion 'nut->header

[FFmpeg-devel] [PATCH 3/3] nutdec: fix memleaks on error in nut_read_header

2015-04-28 Thread Andreas Cadhalpun
Signed-off-by: Andreas Cadhalpun --- libavformat/nutdec.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 2049f70..191b285 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -745,12 +745,14 @@ f

[FFmpeg-devel] [PATCH 1/3] nutdec: fix illegal count check in decode_main_header

2015-04-28 Thread Andreas Cadhalpun
The existing check has two problems: 1) i + count can overflow, so that the check '< 256' returns true. 2) In the (i == 'N') case occurs a j-- so that the loop runs once more. This can trigger the assertion 'nut->header_len[0] == 0' or cause segmentation faults or infinite hangs. Signed-off-by:

[FFmpeg-devel] [PATCH 2/3] nutdec: check chapter creation in decode_info_header

2015-04-28 Thread Andreas Cadhalpun
This fixes a segmentation fault when accessing the metadata. Signed-off-by: Andreas Cadhalpun --- libavformat/nutdec.c | 4 1 file changed, 4 insertions(+) diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 46946d3..2049f70 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nu

Re: [FFmpeg-devel] [PATCH] nutdec: check for negative frame rate in decode_info_header

2015-04-28 Thread Michael Niedermayer
On Tue, Apr 28, 2015 at 08:31:56PM +0200, Andreas Cadhalpun wrote: > A negative frame rate triggers an av_assert2 in av_rescale_rnd. > > Signed-off-by: Andreas Cadhalpun > --- > libavformat/nutdec.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) applied thanks [...] -- Michael

[FFmpeg-devel] [PATCH] nutdec: check for negative frame rate in decode_info_header

2015-04-28 Thread Andreas Cadhalpun
A negative frame rate triggers an av_assert2 in av_rescale_rnd. Signed-off-by: Andreas Cadhalpun --- libavformat/nutdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 4f5037f..191b285 100644 --- a/libavformat/nutdec.c +++

Re: [FFmpeg-devel] [PATCH] Add get_device_list() to AVFoundation input device.

2015-04-28 Thread Daniel Ly
On Thu, Apr 23, 2015 at 11:41 AM, Thilo Borgmann wrote: > Am 23.04.15 um 11:07 schrieb Daniel Ly: > > +info->device_name = av_asprintf("[%d] %s: %s", index, description, > model); > > So I assume that this is not parsed later. > However, it changes current output format and should interfere w

Re: [FFmpeg-devel] [PATCH 2/2] avformat/dtsdec: Extend DTS core sync word

2015-04-28 Thread Michael Niedermayer
On Tue, Apr 28, 2015 at 05:47:53PM +0300, foo86 wrote: > Check extended sync word for 16-bit LE and BE core streams to reduce > probability of alias sync detection. Previously sync word extension was > checked only for 14-bit streams. > > This follows up the similar change in avcodec/dca_parser. >

[FFmpeg-devel] [PATCH 2/2] avfilter/vf_colorkey: Transform calculations to integer math

2015-04-28 Thread Timo Rothenpieler
--- libavfilter/vf_colorkey.c | 36 +++- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/libavfilter/vf_colorkey.c b/libavfilter/vf_colorkey.c index 6c76991..6964809 100644 --- a/libavfilter/vf_colorkey.c +++ b/libavfilter/vf_colorkey.c @@ -29,6 +29,8

[FFmpeg-devel] [PATCH 0/2] colorkey vf, int math conversion, libavfilter questions

2015-04-28 Thread Timo Rothenpieler
Still not fully intended for merging, as there are a few issues/questions left. First thing is the conversion of the float based algorithm to integer math. The code i came up with works, i can't spot a visual difference. But i have no idea if this is the most optimal way to approach this. I left t

[FFmpeg-devel] [PATCH 1/2] avfilter/vf_colorkey: Add colorkey video filter

2015-04-28 Thread Timo Rothenpieler
--- Changelog | 1 + MAINTAINERS | 1 + doc/filters.texi | 39 +++ libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_colorkey.c | 264 ++ 6 files changed, 307 insertions(+

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/dca_parser: Extend DTS core sync word

2015-04-28 Thread Michael Niedermayer
On Tue, Apr 28, 2015 at 05:45:35PM +0300, foo86 wrote: > Check extended sync word for 16-bit LE and BE core streams to reduce > probability of alias sync detection. Previously sync word extension was > checked only for 14-bit streams. > > This is sufficient to make the sample in ticket #4492 par

Re: [FFmpeg-devel] [PATCH] Adobe HTTP Dynamic Streaming (HDS) demuxer improvements

2015-04-28 Thread Gorilla Maguila
I can't think of a better way of avoiding forward declaration due to the nested nature of the F4F Boxes and AMF data. 2015-04-28 15:32 GMT+02:00 Clément Bœsch : > > +static int f4fbox_parse_single_box(AVIOContext *in, void *opaque); > > Again, isn't this avoidable? > +static int amf_metadata_

[FFmpeg-devel] [PATCH] Add get_device_list() to AVFoundation input device.

2015-04-28 Thread Daniel Ly
This makes avdevice_list_input_sources() available for device_name = "avfoundation". avf_read_header is retrofitted to use the new method. Signed-off-by: Daniel Ly --- libavdevice/avfoundation.m | 139 + 1 file changed, 104 insertions(+), 35 deletions(

[FFmpeg-devel] [PATCH 2/2] avformat/dtsdec: Extend DTS core sync word

2015-04-28 Thread foo86
Check extended sync word for 16-bit LE and BE core streams to reduce probability of alias sync detection. Previously sync word extension was checked only for 14-bit streams. This follows up the similar change in avcodec/dca_parser. --- libavformat/dtsdec.c | 6 -- 1 file changed, 4 insertions

[FFmpeg-devel] [PATCH 1/2] avcodec/dca_parser: Extend DTS core sync word

2015-04-28 Thread foo86
Check extended sync word for 16-bit LE and BE core streams to reduce probability of alias sync detection. Previously sync word extension was checked only for 14-bit streams. This is sufficient to make the sample in ticket #4492 parse successfully. The proper solution, however, would involve taki

Re: [FFmpeg-devel] Test case for Closed caption decoder.

2015-04-28 Thread Anshul
On 04/28/2015 02:14 PM, Clément Bœsch wrote: Then FATE test patch should be applied after the CC patch. New patch attached. I have used other ass api. +fate-sub-cc: CMD = fmtstdout ass -f lavfi -i "movie=$(TARGET_SAMPLES)/sub/Closedcaption_atsc_rollup.ts[out0+subcc]" BTW, do we really need

Re: [FFmpeg-devel] [PATCH] Adobe HTTP Dynamic Streaming (HDS) demuxer improvements

2015-04-28 Thread Gorilla Maguila
I will try to fix all the problems, although I'm not the original author of most of the code, I just added better fragments/segment calculation for live streams, and other small changes. 2015-04-28 15:32 GMT+02:00 Clément Bœsch : > On Tue, Apr 28, 2015 at 02:48:42PM +0200, Gorilla Maguila wrote:

Re: [FFmpeg-devel] [PATCH] ffmpeg: remove incorrect network deinit

2015-04-28 Thread Michael Niedermayer
On Thu, Apr 23, 2015 at 02:29:47PM +0200, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > ffmpeg.c |1 - > 1 file changed, 1 deletion(-) applied [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Its not that you shouldnt use gotos but

Re: [FFmpeg-devel] [PATCH] Adobe HTTP Dynamic Streaming (HDS) demuxer improvements

2015-04-28 Thread Clément Bœsch
On Tue, Apr 28, 2015 at 02:48:42PM +0200, Gorilla Maguila wrote: [...] > From 5bb2e85f2e7c4dfeb3569225e263ddc6a4f127cd Mon Sep 17 00:00:00 2001 > From: Developer Mobdro > Date: Tue, 28 Apr 2015 14:38:35 +0200 > Subject: [PATCH] hds demuxer > > --- > configure | 8 + > libavform

Re: [FFmpeg-devel] [libav-devel] Re: [PATCH] apedec: ensure blockstodecode is large enough

2015-04-28 Thread Andreas Cadhalpun
On 28.04.2015 14:35, Luca Barbato wrote: > On 27/04/15 23:56, Andreas Cadhalpun wrote: >> s->decoded_buffer is allocated with a min_size of: >> 2 * FFALIGN(blockstodecode, 8) * sizeof(*s->decoded_buffer) >> >> Then it is assigned to s->decoded[0], which is passed as out buffer to >> decode_arra

Re: [FFmpeg-devel] [PATCH] Adobe HTTP Dynamic Streaming (HDS) demuxer improvements

2015-04-28 Thread Gorilla Maguila
I will work on it and I will upload a new patch soon. 2015-04-28 15:00 GMT+02:00 Carl Eugen Hoyos : > Gorilla Maguila gmail.com> writes: > > > +static int hds_probe(AVProbeData *p) > > +{ > > +if(p->filename && av_stristr(p->filename, ".f4m")) > > +return AVPROBE_SCORE_MAX; > > +

Re: [FFmpeg-devel] [PATCH] Adobe HTTP Dynamic Streaming (HDS) demuxer improvements

2015-04-28 Thread wm4
On Tue, 28 Apr 2015 14:48:42 +0200 Gorilla Maguila wrote: > From 5bb2e85f2e7c4dfeb3569225e263ddc6a4f127cd Mon Sep 17 00:00:00 2001 > From: Developer Mobdro > Date: Tue, 28 Apr 2015 14:38:35 +0200 > Subject: [PATCH] hds demuxer > > --- > +mdat->data = av_mallocz(sizeof(uint8_t)*data_size);

Re: [FFmpeg-devel] [PATCH] Adobe HTTP Dynamic Streaming (HDS) demuxer improvements

2015-04-28 Thread Carl Eugen Hoyos
Gorilla Maguila gmail.com> writes: > +static int hds_probe(AVProbeData *p) > +{ > +if(p->filename && av_stristr(p->filename, ".f4m")) > +return AVPROBE_SCORE_MAX; > +return 0; > +} Remove this function, instead add ".f4m" as .extentions to the AVInputFormat. Carl Eugen ___

Re: [FFmpeg-devel] [PATCH] Adobe HTTP Dynamic Streaming (HDS) demuxer improvements

2015-04-28 Thread Carl Eugen Hoyos
Gorilla Maguila gmail.com> writes: > New patch with some fixes: Thank you for working on this! > +if(type != AMF_DATA_TYPE_STRING) { Please add a space after "if", same below. > +av_log(NULL, AV_LOG_ERROR, "amfmetadata Expected type 2 Please pass the context to this function and

Re: [FFmpeg-devel] [PATCH] Adobe HTTP Dynamic Streaming (HDS) demuxer improvements

2015-04-28 Thread Gorilla Maguila
New patch with some fixes: - use of av_freep - use of context in av_log when possible - corrected else-if format - improved fragment/segment calculation for live streams 2014-09-18 12:01 GMT+02:00 Gorilla Maguila : > I'll try to correct the patch and post it back. > > 2014-09-17 19:34 GMT+02:00

Re: [FFmpeg-devel] [PATCH] apedec: ensure blockstodecode is large enough

2015-04-28 Thread Michael Niedermayer
On Tue, Apr 28, 2015 at 11:22:22AM +0200, Andreas Cadhalpun wrote: > On 28.04.2015 03:18, Michael Niedermayer wrote: > > On Mon, Apr 27, 2015 at 11:56:15PM +0200, Andreas Cadhalpun wrote: > >> s->decoded_buffer is allocated with a min_size of: > >> 2 * FFALIGN(blockstodecode, 8) * sizeof(*s->de

Re: [FFmpeg-devel] [PATCH 1/2] OpenCL: Fix ABI incompatibility issues

2015-04-28 Thread Michael Niedermayer
On Tue, Apr 28, 2015 at 07:43:48AM +, Gupta, Maneesh wrote: > > -Original Message- > > From: ffmpeg-devel-boun...@ffmpeg.org [mailto:ffmpeg-devel- > > boun...@ffmpeg.org] On Behalf Of Michael Niedermayer > > Sent: Monday, April 27, 2015 4:57 PM > > To: FFmpeg development discussions and

Re: [FFmpeg-devel] [PATCH 2/2] OpenCL: Avoid potential buffer overflow in cmdutils_opencl.c by using strncpy instead of strcpy

2015-04-28 Thread Michael Niedermayer
On Tue, Apr 28, 2015 at 07:43:51AM +, Gupta, Maneesh wrote: > > -Original Message- > > From: ffmpeg-devel-boun...@ffmpeg.org [mailto:ffmpeg-devel- > > boun...@ffmpeg.org] On Behalf Of Michael Niedermayer > > Sent: Monday, April 27, 2015 4:49 PM > > To: FFmpeg development discussions and

Re: [FFmpeg-devel] [PATCH] apedec: ensure blockstodecode is large enough

2015-04-28 Thread Andreas Cadhalpun
On 28.04.2015 03:18, Michael Niedermayer wrote: > On Mon, Apr 27, 2015 at 11:56:15PM +0200, Andreas Cadhalpun wrote: >> s->decoded_buffer is allocated with a min_size of: >> 2 * FFALIGN(blockstodecode, 8) * sizeof(*s->decoded_buffer) >> >> Then it is assigned to s->decoded[0], which is passed a

Re: [FFmpeg-devel] Test case for Closed caption decoder.

2015-04-28 Thread Clément Bœsch
On Tue, Apr 28, 2015 at 02:05:20PM +0530, Anshul wrote: [...] > >Where are the line breaks? > I have added patch in closed caption decoder. > but that will make fate test fail till closed caption decoder patch is > applied. Then FATE test patch should be applied after the CC patch. > since I hav

Re: [FFmpeg-devel] Test case for Closed caption decoder.

2015-04-28 Thread Anshul
On 04/27/2015 10:38 PM, Clément Bœsch wrote: On Mon, Apr 27, 2015 at 10:35:49PM +0530, Anshul wrote: Hello, I am attaching patch for closed caption decoder. Thanks Anshul From 230cd5d9de356a8e84d2c36f91510631317986db Mon Sep 17 00:00:00 2001 From: Anshul Maheshwari Date: Mon, 27 Apr 2015 2

Re: [FFmpeg-devel] [PATCH 2/2] OpenCL: Avoid potential buffer overflow in cmdutils_opencl.c by using strncpy instead of strcpy

2015-04-28 Thread Gupta, Maneesh
> -Original Message- > From: ffmpeg-devel-boun...@ffmpeg.org [mailto:ffmpeg-devel- > boun...@ffmpeg.org] On Behalf Of Michael Niedermayer > Sent: Monday, April 27, 2015 4:49 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH 2/2] OpenCL: Avoid potential

Re: [FFmpeg-devel] [PATCH 1/2] OpenCL: Fix ABI incompatibility issues

2015-04-28 Thread Gupta, Maneesh
> -Original Message- > From: ffmpeg-devel-boun...@ffmpeg.org [mailto:ffmpeg-devel- > boun...@ffmpeg.org] On Behalf Of Michael Niedermayer > Sent: Monday, April 27, 2015 4:57 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH 1/2] OpenCL: Fix ABI incompa