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

Andreas Öman andreas
Mon Jan 7 21:19:29 CET 2008


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.patch
Type: text/x-patch
Size: 498 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080107/00cd2362/attachment.bin>

More information about the ffmpeg-devel mailing list