Re: [FFmpeg-devel] [PATCH 2/2] avcodec/utils: Check that the video data[] arrays are NULL on the input to get_buffer_internal()

2016-02-27 Thread Michael Niedermayer
On Fri, Feb 26, 2016 at 01:07:54PM +0100, Reimar Döffinger wrote: > On Fri, Feb 26, 2016 at 12:59:08PM +0100, Michael Niedermayer wrote: > > This should return an error to the decoder if the struct it tried to > > getbuffer is dirty > > It seems like a good idea, however it likely won't help > fo

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/utils: Check that the video data[] arrays are NULL on the input to get_buffer_internal()

2016-02-26 Thread Reimar Döffinger
On Fri, Feb 26, 2016 at 12:59:08PM +0100, Michael Niedermayer wrote: > This should return an error to the decoder if the struct it tried to > getbuffer is dirty It seems like a good idea, however it likely won't help for programs providing their own getbuffer2 as they will probably fill the data[

[FFmpeg-devel] [PATCH 2/2] avcodec/utils: Check that the video data[] arrays are NULL on the input to get_buffer_internal()

2016-02-26 Thread Michael Niedermayer
This should return an error to the decoder if the struct it tried to getbuffer is dirty Signed-off-by: Michael Niedermayer --- libavcodec/utils.c |5 + 1 file changed, 5 insertions(+) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index f8dee50..c7798e6 100644 --- a/libavcodec/ut