[FFmpeg-devel] [PATCH] fix crash in ffmpeg if resampling and no audio packets are ever processed

Michael Niedermayer michaelni
Mon Jan 7 21:34:05 CET 2008

On Mon, Jan 07, 2008 at 09:19:29PM +0100, Andreas ?man wrote:
> Hi
> If an ffmpeg transcoding requests that resampling should be set up but
> no audio packet is ever processed, ost->resample will be NULL but
> ost->audio_resample will be 1. This will cause audio_resample_free()
> to be called with NULL, resulting in a crash.
> This was a regression introduced by me in r11222
> Attached patch fixes the issue.


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I count him braver who overcomes his desires than him who conquers his
enemies for the hardest victory is over self. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080107/993c780d/attachment.pgp>

More information about the ffmpeg-devel mailing list