[FFmpeg-devel] [PATCH] ffprobe: replace av_destruct_packet() with av_free_packet()

Stefano Sabatini stefasab at gmail.com
Thu Jan 12 10:45:54 CET 2012


On date Thursday 2012-01-12 01:33:23 +0100, Michael Niedermayer encoded:
> On Thu, Jan 12, 2012 at 12:39:27AM +0100, Stefano Sabatini wrote:
> > av_destruct_packet() always frees the packet data even when the demuxer
> > is going to re-use it, thus causing crashes when decoding audio
> > frames (as implemented in a pending patch).
> > 
> > av_free_packet() is used instead, as it allows each demuxer to set the
> > right packet data releasing mechanism through the pkt->destruct callback.
> 
> LGTM, thanks

Pushed.
-- 
FFmpeg = Foolish & Fostering Mind-dumbing Picky Elitarian Gymnast


More information about the ffmpeg-devel mailing list