[FFmpeg-devel] [PATCH 1/2] lavfi/abuffer: init the data planes with NULL pointers.

Clément Bœsch ubitux at gmail.com
Tue Feb 21 18:01:09 CET 2012


On Mon, Feb 20, 2012 at 06:06:54PM +0000, Paul B Mahol wrote:
> On 2/20/12, Clement Boesch <ubitux at gmail.com> wrote:
> > From: Clement Boesch <clement.boesch at smartjog.com>
> >
> > Samples buffer ref is allocated and loaded with the uninitialized data
> > pointers:
> >      av_asrc_buffer_add_buffer()
> >   -> av_asrc_buffer_add_samples()
> >   -> avfilter_get_audio_buffer_ref_from_arrays(data, ...)
> >
> > ...which leads to a crash with at least lavfi/ashowinfo in case of !NULL
> > (see the for loop while samplesref->data[plane]).
> > ---
> >  libavfilter/asrc_abuffer.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> >
> 
> LGTM

Applied.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120221/5a77814d/attachment.asc>


More information about the ffmpeg-devel mailing list