Re: [FFmpeg-devel] size=0, but av_malloc(1)

2016-03-23 Thread Reimar Döffinger
On Tue, Mar 22, 2016 at 11:43:50PM -0700, Chris Cunningham wrote: > Hey Group, > > I'm seeing an interesting pattern [0][1] where we allocate 1 byte in places > where I would expect no allocation to be necessary. Why is this being done? Well, what else would you do? None of the alternatives reall

Re: [FFmpeg-devel] Refund request for FFmpeg at CLT 2016

2016-03-23 Thread Stefano Sabatini
On date Tuesday 2016-03-22 02:51:33 +0100, Michael Niedermayer encoded: > On Mon, Mar 21, 2016 at 09:49:54PM +0100, Thilo Borgmann wrote: > > Am 21.03.16 um 20:42 schrieb Michael Niedermayer: > > > On Mon, Mar 21, 2016 at 12:14:40PM +0100, Thilo Borgmann wrote: > > >> Hi, > > >> > > >> last weekend

Re: [FFmpeg-devel] [PATCH] Implement hdcd filtering

2016-03-23 Thread Paul B Mahol
On 3/23/16, Benjamin St wrote: > Isn't this needed by AVFILTER_DEFINE_CLASS ? You dont need it if filter doesnt have options to set. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] size=0, but av_malloc(1)

2016-03-23 Thread Carl Eugen Hoyos
Chris Cunningham chromium.org> writes: > I'm seeing an interesting pattern [0][1] where we allocate 1 byte in places > where I would expect no allocation to be necessary. Why is this being done? > > [0] https://github.com/FFmpeg/FFmpeg/blob/master/libavutil/mem.c#L136 Iirc, alloc(0) crashes (or

Re: [FFmpeg-devel] size=0, but av_malloc(1)

2016-03-23 Thread Clément Bœsch
On Wed, Mar 23, 2016 at 12:25:07PM +, Carl Eugen Hoyos wrote: > Chris Cunningham chromium.org> writes: > > > I'm seeing an interesting pattern [0][1] where we allocate 1 byte in places > > where I would expect no allocation to be necessary. Why is this being done? > > > > [0] https://github.

Re: [FFmpeg-devel] size=0, but av_malloc(1)

2016-03-23 Thread Ronald S. Bultje
Hi, On Wed, Mar 23, 2016 at 2:43 AM, Chris Cunningham wrote: > Hey Group, > > I'm seeing an interesting pattern [0][1] where we allocate 1 byte in places > where I would expect no allocation to be necessary. Why is this being done? > > [0] https://github.com/FFmpeg/FFmpeg/blob/master/libavutil/m

Re: [FFmpeg-devel] size=0, but av_malloc(1)

2016-03-23 Thread Ronald S. Bultje
Hi, On Wed, Mar 23, 2016 at 8:32 AM, Ronald S. Bultje wrote: > Hi, > > On Wed, Mar 23, 2016 at 2:43 AM, Chris Cunningham < > chcunning...@chromium.org> wrote: > >> Hey Group, >> >> I'm seeing an interesting pattern [0][1] where we allocate 1 byte in >> places >> where I would expect no allocatio

[FFmpeg-devel] [PATCH v2 2/8] lavc: factor apply_param_change() AV_EF_EXPLODE handling

2016-03-23 Thread wm4
Remove the duplicated code for handling failure of apply_param_change(). --- libavcodec/utils.c | 34 +++--- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index c625bbc..2436f16 100644 --- a/libavcodec/utils.c ++

[FFmpeg-devel] [PATCH v2 3/8] lavc: introduce a new decoding/encoding API with decoupled input/output

2016-03-23 Thread wm4
Until now, the decoding API was restricted to outputting 0 or 1 frames per input packet. It also enforces a somewhat rigid dataflow in general. This new API seeks to relax these restrictions by decoupling input and output. Instead of doing a single call on each decode step, which may consume the p

[FFmpeg-devel] [PATCH v2 4/8] ffmpeg: remove sub-frame warning

2016-03-23 Thread wm4
It's not practical to keep this with the new decode API. --- ffmpeg.c | 7 --- ffmpeg.h | 1 - 2 files changed, 8 deletions(-) diff --git a/ffmpeg.c b/ffmpeg.c index 9a14294..bdb0e5e 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2316,13 +2316,6 @@ static int process_input_packet(InputStream *ist,

[FFmpeg-devel] [PATCH v2 6/8] ffmpeg: use new encode API

2016-03-23 Thread wm4
--- Not so sure about the frame duplication logic etc. --- ffmpeg.c | 71 +--- 1 file changed, 46 insertions(+), 25 deletions(-) diff --git a/ffmpeg.c b/ffmpeg.c index 1f1de8e..a7b07fb 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -788,7 +788,

[FFmpeg-devel] [PATCH v2 0/8] Add decoding/encoding API with decoupled input/output

2016-03-23 Thread wm4
wm4 (8): lavu: improve documentation of some AVFrame functions lavc: factor apply_param_change() AV_EF_EXPLODE handling lavc: introduce a new decoding/encoding API with decoupled input/output ffmpeg: remove sub-frame warning ffmpeg: use new decode API ffmpeg: use new encode API la

[FFmpeg-devel] [PATCH v2 1/8] lavu: improve documentation of some AVFrame functions

2016-03-23 Thread wm4
--- libavutil/frame.h | 12 1 file changed, 12 insertions(+) diff --git a/libavutil/frame.h b/libavutil/frame.h index 76a8123..2d6299b 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -591,6 +591,10 @@ void av_frame_free(AVFrame **frame); * If src is not reference counted,

[FFmpeg-devel] [PATCH v2 7/8] lavf: use new decode API

2016-03-23 Thread wm4
--- libavformat/utils.c | 29 - 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 67d4d1b..c7b7969 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2814,27 +2814,22 @@ static int try_decode_fram

[FFmpeg-devel] [PATCH v2 8/8] lavc: add async decoding/encoding API

2016-03-23 Thread wm4
This needs to be explicitly supported by the AVCodec. Async mode can be enabled for AVCodecs without explicit support too, which is treated as if the codec performs all work instantly. --- libavcodec/avcodec.h | 114 ++- libavcodec/utils.c | 30 ++

[FFmpeg-devel] [PATCH v2 5/8] ffmpeg: use new decode API

2016-03-23 Thread wm4
This is a bit messy, mainly due to timestamp handling. decode_video() relied on the fact that it could set dts on a flush/drain packet. This is not possible with the old API, and won't be. (I think doing this was very questionable with the old API. Flush packets should not contain any information;

Re: [FFmpeg-devel] [PATCH v2 1/8] lavu: improve documentation of some AVFrame functions

2016-03-23 Thread Carl Eugen Hoyos
wm4 googlemail.com> writes: > + * warning: if frame already has been allocated, calling this function will > + * leak memory. In addition, undefined behavior can occur in certain > + * cases. If this is correct, I believe the following is a slightly better wording: if frame already has

Re: [FFmpeg-devel] [PATCH v2 3/8] lavc: introduce a new decoding/encoding API with decoupled input/output

2016-03-23 Thread Carl Eugen Hoyos
wm4 googlemail.com> writes: > Until now, the decoding API was restricted to outputting 0 or 1 frames > per input packet. It also enforces a somewhat rigid dataflow in general. > > This new API seeks to relax these restrictions by decoupling input and > output. Instead of doing a single call on e

Re: [FFmpeg-devel] [PATCH v2 3/8] lavc: introduce a new decoding/encoding API with decoupled input/output

2016-03-23 Thread Hendrik Leppkes
On Wed, Mar 23, 2016 at 2:45 PM, Carl Eugen Hoyos wrote: > wm4 googlemail.com> writes: > >> Until now, the decoding API was restricted to outputting 0 or 1 frames >> per input packet. It also enforces a somewhat rigid dataflow in general. >> >> This new API seeks to relax these restrictions by de

[FFmpeg-devel] [PATCH] lavf/segment: support automatic bitstream filtering

2016-03-23 Thread Rodger Combs
Most useful for MPEG-TS. Works by having the underlying muxer configure the bitstream filters, then moving them to our own AVStreams. --- libavformat/segment.c | 43 ++- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/libavformat/segment.c b/l

Re: [FFmpeg-devel] size=0, but av_malloc(1)

2016-03-23 Thread Michael Niedermayer
On Tue, Mar 22, 2016 at 11:43:50PM -0700, Chris Cunningham wrote: > Hey Group, > > I'm seeing an interesting pattern [0][1] where we allocate 1 byte in places > where I would expect no allocation to be necessary. Why is this being done? > > [0] https://github.com/FFmpeg/FFmpeg/blob/master/libavut

Re: [FFmpeg-devel] [PATCH] Add new test for libavutil/mastering_display_metadata

2016-03-23 Thread Petru Rares Sincraian
If I understand well you want me to do a test that given a multimedia file test if it loads works ok. If so how can I get a simple multimedia file? I see this tests more like a unitary tests. In my opinion, test if loading/storing to AVFrame need to be done in AVFrame. Thanks :) ___

Re: [FFmpeg-devel] [PATCH] Implement hdcd filtering

2016-03-23 Thread Michael Niedermayer
On Wed, Mar 23, 2016 at 12:39:30PM +0100, Benjamin St wrote: > > > > const? > > > Fixed > > missing new line. > > Fixed > > > > Here and in every other function, { must be on own, separate line like > > in every other filter. > > > Fixed > > Please use FFMIN() > > Fixed > > > +} HDCDContext

Re: [FFmpeg-devel] [PATCH] added support for hardware assist H264 video encoding for the Raspberry Pi

2016-03-23 Thread Michael Niedermayer
On Tue, Mar 22, 2016 at 06:40:27PM -0700, Amancio Hasty wrote: [...] > +static int vc264_init(AVCodecContext *avctx) { > + > + > + > + OMX_ERRORTYPE r; > + int error; > + > + > + > + VC264Context *vc = avctx->priv_data; > + > + vc->width = avctx->width; > + vc->height = avctx->height; >

[FFmpeg-devel] [PATCH] sws/aarch64: add ff_hscale_8_to_15_neon

2016-03-23 Thread Clément Bœsch
From: Clément Bœsch ./ffmpeg -nostats -f lavfi -i testsrc2=4k:d=2 -vf bench=start,scale=1024x1024,bench=stop -f null - before: t:0.489726 avg:0.489883 max:0.491852 min:0.489482 after: t:0.259438 avg:0.257707 max:0.260125 min:0.255893 --- I don't really like the roundtrip back to the ge

[FFmpeg-devel] [PATCH 1/2] Refactor libavutil/parseutils.c

2016-03-23 Thread Petru Rares Sincraian
All tests were in the main method which produces a long main. Now, each test is in his own method. I think this produces a more clear code and follows more with the main priority of FFmpeg "simplicity and small code size" --- libavutil/parseutils.c | 338 +-

Re: [FFmpeg-devel] [PATCH v2 2/8] lavc: factor apply_param_change() AV_EF_EXPLODE handling

2016-03-23 Thread Michael Niedermayer
On Wed, Mar 23, 2016 at 02:02:09PM +0100, wm4 wrote: > Remove the duplicated code for handling failure of apply_param_change(). > --- > libavcodec/utils.c | 34 +++--- > 1 file changed, 19 insertions(+), 15 deletions(-) still LGTM thx [...] -- Michael GnuPG fing

[FFmpeg-devel] [PATCH 2/2] Added more tests to libavutil/parseutils.c

2016-03-23 Thread Petru Rares Sincraian
- Added tests for av_find_info_tag(). - Added test for av_get_known_color_name() --- libavutil/parseutils.c| 37 tests/ref/fate/parseutils | 151 ++ 2 files changed, 188 insertions(+) diff --git a/libavutil/parseutils.c b/liba

Re: [FFmpeg-devel] [PATCH] added support for hardware assist H264 video encoding for the Raspberry Pi

2016-03-23 Thread Amancio Hasty
Is there a pretty formatter for ffmpeg’s coding style and coding style guideline? Amancio > On Mar 23, 2016, at 8:17 AM, Michael Niedermayer > wrote: > > On Tue, Mar 22, 2016 at 06:40:27PM -0700, Amancio Hasty wrote: > [...] > >> +static int vc264_init(AVCodecContext *avctx) { >> + >> + >> +

Re: [FFmpeg-devel] [PATCH] added support for hardware assist H264 video encoding for the Raspberry Pi

2016-03-23 Thread Ronald S. Bultje
Hi, On Wed, Mar 23, 2016 at 11:41 AM, Amancio Hasty wrote: > Is there a pretty formatter for ffmpeg’s coding style and > coding style guideline? https://ffmpeg.org/developer.html#Coding-Rules-1 Please don't top-post. Ronald ___ ffmpeg-devel mailing

Re: [FFmpeg-devel] [PATCH]Addition of MLP encoder

2016-03-23 Thread Disha Singh
This is the modified diff with few changes in mlp_encode_frame function. -Disha On Tue, Mar 22, 2016 at 1:59 AM, Disha Singh wrote: > Qualification task for project TrueHD encoder. > There are two patches. > One has the changes made to other files to support mlpenc.c and the other > only has ml

[FFmpeg-devel] GSoC again

2016-03-23 Thread Gerion Entrup
Good day, my previous attempts for GSoC aren't very successful. I talked with Carl Eugen about GSoC. He advise me to choose a project with clear aims that fits clearly into the scope of the framework. Such a thing would be MPEG DASH demuxing [1] , so I want to bring it up as suggestion. DASH is a

Re: [FFmpeg-devel] [PATCH] Implement hdcd filtering

2016-03-23 Thread Carl Eugen Hoyos
Benjamin St gmail.com> writes: > This patch applies filtering/decoding for hdcds(see ticket #4441) . > The filter is heavily based on > https://github.com/kode54/foo_hdcd/. (Is this ok? It seems to me as if the most simple solution is not to change the license but add the license to our used

Re: [FFmpeg-devel] [PATCH v2 4/8] ffmpeg: remove sub-frame warning

2016-03-23 Thread Michael Niedermayer
On Wed, Mar 23, 2016 at 02:02:11PM +0100, wm4 wrote: > It's not practical to keep this with the new decode API. > --- > ffmpeg.c | 7 --- > ffmpeg.h | 1 - > 2 files changed, 8 deletions(-) its not practical in ffmpeg.c but libavcodec should be able to easily check that a decoder which doesnt

Re: [FFmpeg-devel] [PATCH v2 4/8] ffmpeg: remove sub-frame warning

2016-03-23 Thread wm4
On Wed, 23 Mar 2016 17:51:11 +0100 Michael Niedermayer wrote: > On Wed, Mar 23, 2016 at 02:02:11PM +0100, wm4 wrote: > > It's not practical to keep this with the new decode API. > > --- > > ffmpeg.c | 7 --- > > ffmpeg.h | 1 - > > 2 files changed, 8 deletions(-) > > its not practical in

Re: [FFmpeg-devel] [PATCH] lavc/mediacodec: add hwaccel support

2016-03-23 Thread Matthieu Bouron
On Tue, Mar 22, 2016 at 10:04 AM, Matthieu Bouron wrote: > > > On Fri, Mar 18, 2016 at 5:50 PM, Matthieu Bouron < > matthieu.bou...@gmail.com> wrote: > >> From: Matthieu Bouron >> >> --- >> >> Hello, >> >> The following patch add hwaccel support to the mediacodec (h264) decoder >> by allowing >>

Re: [FFmpeg-devel] [PATCH v2 5/8] ffmpeg: use new decode API

2016-03-23 Thread Michael Niedermayer
On Wed, Mar 23, 2016 at 02:02:12PM +0100, wm4 wrote: > This is a bit messy, mainly due to timestamp handling. > > decode_video() relied on the fact that it could set dts on a flush/drain > packet. This is not possible with the old API, and won't be. (I think > doing this was very questionable with

Re: [FFmpeg-devel] [PATCH v2 4/8] ffmpeg: remove sub-frame warning

2016-03-23 Thread Michael Niedermayer
On Wed, Mar 23, 2016 at 06:06:37PM +0100, wm4 wrote: > On Wed, 23 Mar 2016 17:51:11 +0100 > Michael Niedermayer wrote: > > > On Wed, Mar 23, 2016 at 02:02:11PM +0100, wm4 wrote: > > > It's not practical to keep this with the new decode API. > > > --- > > > ffmpeg.c | 7 --- > > > ffmpeg.h |

Re: [FFmpeg-devel] [PATCH] added support for hardware assist H264 video encoding for the Raspberry Pi

2016-03-23 Thread Amancio Hasty
> On Mar 23, 2016, at 8:17 AM, Michael Niedermayer > wrote: > > On Tue, Mar 22, 2016 at 06:40:27PM -0700, Amancio Hasty wrote: > [...] > >> +static int vc264_init(AVCodecContext *avctx) { >> + >> + >> + >> + OMX_ERRORTYPE r; >> + int error; >> + >> + >> + >> + VC264Context *vc = avctx->p

[FFmpeg-devel] FFmpeg code Attribution

2016-03-23 Thread Aaron Boxer
Hello Again, I took a look at the FFmpeg j2k code. Now, I've worked with OpenJPEG for many years, and I would say at least 20% of the code in FFmpeg was either directly copied from OpenJPEG, or is very similar to OpenJPEG code. I think the people who did the work on the FFmpeg codec would readily

Re: [FFmpeg-devel] [PATCH v2 4/8] ffmpeg: remove sub-frame warning

2016-03-23 Thread wm4
On Wed, 23 Mar 2016 18:37:25 +0100 Michael Niedermayer wrote: > On Wed, Mar 23, 2016 at 06:06:37PM +0100, wm4 wrote: > > On Wed, 23 Mar 2016 17:51:11 +0100 > > Michael Niedermayer wrote: > > > > > On Wed, Mar 23, 2016 at 02:02:11PM +0100, wm4 wrote: > > > > It's not practical to keep this w

Re: [FFmpeg-devel] FFmpeg code Attribution

2016-03-23 Thread Michael Bradshaw
On Wed, Mar 23, 2016 at 12:24 PM, Aaron Boxer wrote: > Hello Again, > > I took a look at the FFmpeg j2k code. Now, I've worked with OpenJPEG for > many years, and I would say at least 20% of the code in FFmpeg was either > directly copied from OpenJPEG, or is very similar to OpenJPEG code. > > I t

Re: [FFmpeg-devel] [PATCH v2 4/8] ffmpeg: remove sub-frame warning

2016-03-23 Thread Michael Niedermayer
On Wed, Mar 23, 2016 at 08:44:41PM +0100, wm4 wrote: > On Wed, 23 Mar 2016 18:37:25 +0100 > Michael Niedermayer wrote: > > > On Wed, Mar 23, 2016 at 06:06:37PM +0100, wm4 wrote: > > > On Wed, 23 Mar 2016 17:51:11 +0100 > > > Michael Niedermayer wrote: > > > > > > > On Wed, Mar 23, 2016 at 02:

Re: [FFmpeg-devel] [PATCH v2 4/8] ffmpeg: remove sub-frame warning

2016-03-23 Thread wm4
On Wed, 23 Mar 2016 21:36:35 +0100 Michael Niedermayer wrote: > On Wed, Mar 23, 2016 at 08:44:41PM +0100, wm4 wrote: > > On Wed, 23 Mar 2016 18:37:25 +0100 > > Michael Niedermayer wrote: > > > > > On Wed, Mar 23, 2016 at 06:06:37PM +0100, wm4 wrote: > > > > On Wed, 23 Mar 2016 17:51:11 +010

Re: [FFmpeg-devel] size=0, but av_malloc(1)

2016-03-23 Thread Reimar Döffinger
On Wed, Mar 23, 2016 at 03:31:38PM +0100, Michael Niedermayer wrote: > On Tue, Mar 22, 2016 at 11:43:50PM -0700, Chris Cunningham wrote: > > Hey Group, > > > > I'm seeing an interesting pattern [0][1] where we allocate 1 byte in places > > where I would expect no allocation to be necessary. Why is

Re: [FFmpeg-devel] FFmpeg code Attribution

2016-03-23 Thread Reimar Döffinger
On Wed, Mar 23, 2016 at 03:24:47PM -0400, Aaron Boxer wrote: > Hello Again, > > I took a look at the FFmpeg j2k code. Now, I've worked with OpenJPEG for > many years, and I would say at least 20% of the code in FFmpeg was either > directly copied from OpenJPEG, or is very similar to OpenJPEG code.

Re: [FFmpeg-devel] [PATCH v2 4/8] ffmpeg: remove sub-frame warning

2016-03-23 Thread Michael Niedermayer
On Wed, Mar 23, 2016 at 09:51:46PM +0100, wm4 wrote: > On Wed, 23 Mar 2016 21:36:35 +0100 > Michael Niedermayer wrote: > > > On Wed, Mar 23, 2016 at 08:44:41PM +0100, wm4 wrote: > > > On Wed, 23 Mar 2016 18:37:25 +0100 > > > Michael Niedermayer wrote: > > > > > > > On Wed, Mar 23, 2016 at 06:

Re: [FFmpeg-devel] FFmpeg code Attribution

2016-03-23 Thread Carl Eugen Hoyos
Reimar Döffinger gmx.de> writes: > If it is copied the authors will hopefully admit to it > (and hopefully be more careful about attribution in the > future). I of course agree with what you wrote but the original author of the jpeg 2000 codec was unreachable a few weeks after he had submitt

Re: [FFmpeg-devel] GSoC again

2016-03-23 Thread Lukasz Marek
On 23.03.2016 17:09, Gerion Entrup wrote: > 3. Implement adaptive switching. > > A note to the 3rd point. I'm absolutely not sure, what amount of work this is > (maybe you could comment it) and what the best place would be to implement > this (including whether this whole feature is meaningful).

Re: [FFmpeg-devel] FFmpeg code Attribution

2016-03-23 Thread Rostislav Pehlivanov
On 23 March 2016 at 21:22, Carl Eugen Hoyos wrote: > Reimar Döffinger gmx.de> writes: > > > If it is copied the authors will hopefully admit to it > > (and hopefully be more careful about attribution in the > > future). > > I of course agree with what you wrote but the original > author of the j

Re: [FFmpeg-devel] FFmpeg code Attribution

2016-03-23 Thread Aaron Boxer
On Wed, Mar 23, 2016 at 3:59 PM, Michael Bradshaw wrote: > On Wed, Mar 23, 2016 at 12:24 PM, Aaron Boxer wrote: > > Hello Again, > > > > I took a look at the FFmpeg j2k code. Now, I've worked with OpenJPEG for > > many years, and I would say at least 20% of the code in FFmpeg was either > > dire

[FFmpeg-devel] [PATCH]lavc/flicvideo: Implement padding in COPY chunks.

2016-03-23 Thread Carl Eugen Hoyos
Hi! Attached patch fixes ticket #5364 for me. Please review, Carl Eugen diff --git a/libavcodec/flicvideo.c b/libavcodec/flicvideo.c index 3e0573a..7535a40 100644 --- a/libavcodec/flicvideo.c +++ b/libavcodec/flicvideo.c @@ -423,7 +423,7 @@ static int flic_decode_frame_8BPP(AVCodecContext *avctx,

[FFmpeg-devel] [PATCH v2 3/3] Tee muxer improvement (handling slave failure)

2016-03-23 Thread Jan Sebechlebsky
Adds per slave option 'onfail' to the tee muxer allowing an output to fail,so other slave outputs can continue. Signed-off-by: Jan Sebechlebsky --- doc/muxers.texi | 14 + libavformat/tee.c | 91 +-- 2 files changed, 96 insertions(+),

[FFmpeg-devel] [PATCH v2 2/3] Fix leaks in tee muxer when open_slave fails

2016-03-23 Thread Jan Sebechlebsky
Calling close_slave in case error is to be returned from open_slave will free allocated resources. Since failure can happen before bsfs array is initialized, close_slave must check that bsfs is not NULL before accessing tee_slave->bsfs[i] element. Signed-off-by: Jan Sebechlebsky --- libavformat

[FFmpeg-devel] [PATCH v2 1/3] Refactor close_slaves function in tee muxer

2016-03-23 Thread Jan Sebechlebsky
Closing single slave operation is pulled out into separate function close_slave(TeeSlave*). Both close_slave and close_slaves function are moved before open_slave function. Signed-off-by: Jan Sebechlebsky --- libavformat/tee.c | 59 +++ 1 file

Re: [FFmpeg-devel] FFmpeg code Attribution

2016-03-23 Thread Ricardo Constantino
On 23 March 2016 at 22:35, Aaron Boxer wrote: > Back to my original point, what is the reasoning not to just switch to > OpenJPEG? Both OpenJPEG 1 and 2 are supported to add as external libraries in FFmpeg. What do you mean by switching to OpenJPEG? ___

Re: [FFmpeg-devel] [PATCH] Implement hdcd filtering

2016-03-23 Thread Carl Eugen Hoyos
Benjamin St gmail.com> writes: > This patch applies filtering/decoding for hdcds(see > ticket #4441) I tried to test with the files sample.cdda.flac and sample.hdcd.flac attached in the ticket. The output is different and one possible reason is the usage of floating point arithmetic in the f

Re: [FFmpeg-devel] [PATCH] lavf/segment: support automatic bitstream filtering

2016-03-23 Thread Michael Niedermayer
On Wed, Mar 23, 2016 at 09:29:38AM -0500, Rodger Combs wrote: > Most useful for MPEG-TS. Works by having the underlying muxer configure the > bitstream filters, then moving them to our own AVStreams. > --- > libavformat/segment.c | 43 ++- > 1 file changed,

Re: [FFmpeg-devel] FFmpeg code Attribution

2016-03-23 Thread Aaron Boxer
On Wed, Mar 23, 2016 at 9:48 PM, Ricardo Constantino wrote: > On 23 March 2016 at 22:35, Aaron Boxer wrote: > > Back to my original point, what is the reasoning not to just switch to > > OpenJPEG? > Both OpenJPEG 1 and 2 are supported to add as external libraries in > FFmpeg. What do you mean by

Re: [FFmpeg-devel] [PATCH 1/2] Refactor libavutil/parseutils.c

2016-03-23 Thread Michael Niedermayer
On Wed, Mar 23, 2016 at 03:32:56PM +, Petru Rares Sincraian wrote: > All tests were in the main method which produces a long main. Now, each test > is in his own method. > > I think this produces a more clear code and follows more with the main > priority of FFmpeg "simplicity and small code s

Re: [FFmpeg-devel] [PATCH 2/2] Added more tests to libavutil/parseutils.c

2016-03-23 Thread Michael Niedermayer
On Wed, Mar 23, 2016 at 03:33:02PM +, Petru Rares Sincraian wrote: > > - Added tests for av_find_info_tag(). > - Added test for av_get_known_color_name() > --- > libavutil/parseutils.c| 37 > tests/ref/fate/parseutils | 151 >

Re: [FFmpeg-devel] [PATCH] Add new test for libavutil/mastering_display_metadata

2016-03-23 Thread Michael Niedermayer
On Wed, Mar 23, 2016 at 02:37:31PM +, Petru Rares Sincraian wrote: > If I understand well you want me to do a test that given a multimedia file > test if it loads works ok. If so how can I get a simple multimedia file? > i dont know, but there are probably 3 ways or so 1. search for such a f

Re: [FFmpeg-devel] FFmpeg code Attribution

2016-03-23 Thread Reimar Döffinger
On Wed, Mar 23, 2016 at 06:35:20PM -0400, Aaron Boxer wrote: > On Wed, Mar 23, 2016 at 3:59 PM, Michael Bradshaw wrote: > > > On Wed, Mar 23, 2016 at 12:24 PM, Aaron Boxer wrote: > > > Hello Again, > > > > > > I took a look at the FFmpeg j2k code. Now, I've worked with OpenJPEG for > > > many ye

Re: [FFmpeg-devel] FFmpeg code Attribution

2016-03-23 Thread Reimar Döffinger
On Wed, Mar 23, 2016 at 10:50:06PM -0400, Aaron Boxer wrote: > On Wed, Mar 23, 2016 at 9:48 PM, Ricardo Constantino > wrote: > > > On 23 March 2016 at 22:35, Aaron Boxer wrote: > > > Back to my original point, what is the reasoning not to just switch to > > > OpenJPEG? > > Both OpenJPEG 1 and 2

[FFmpeg-devel] [PATCH 1/4] lavc/audiotoolboxenc: remove unneeded packet metadata

2016-03-23 Thread Rodger Combs
This isn't necessary here, and for some reason broke only multichannel AAC encoding when a channel layout tag was set. --- libavcodec/audiotoolboxenc.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/libavcodec/audiotoolboxenc.c b/libavcodec/audiotoolboxenc.c

[FFmpeg-devel] [PATCH 3/4] lavc/audiotoolboxdec: support ADTS AAC input

2016-03-23 Thread Rodger Combs
--- libavcodec/audiotoolboxdec.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c index 270e07f..1fa6f16 100644 --- a/libavcodec/audiotoolboxdec.c +++ b/libavcodec/audiotoolboxdec.c @

[FFmpeg-devel] [PATCH 4/4] lavc/audiotoolboxdec: fix a number of config and timestamp issues

2016-03-23 Thread Rodger Combs
- ADTS-formatted AAC didn't work - Channel layouts were never exported - Channel mappings were incorrect beyond stereo - Channel counts weren't updated after packets were decoded - Timestamps were exported incorrectly --- libavcodec/audiotoolboxdec.c | 248 -

[FFmpeg-devel] [PATCH 2/4] lavc/audiotoolboxenc: fix a number of config issues

2016-03-23 Thread Rodger Combs
- size variables were used in a confusing way - incorrect size var use led to channel layouts not being set properly - channel layouts were incorrectly mapped for >2-channel AAC - bitrates not accepted by the encoder were discarded instead of being clamped - some minor style/indentation fixes ---