[FFmpeg-devel] [PATCH] Prevent user from setting -vol and -acodec copy.

Ramiro Polla ramiro
Sat Jul 12 05:09:54 CEST 2008


Hello,

For a command line like this:
./ffmpeg_g -i input.wav -acodec copy -vol 1024 -y output.wav

FFmpeg segfaults trying to preprocess audio volume in output_packet(). 
Since there is no decoding, samples is NULL and any attempt to read them 
segfaults.

Attached patch prevents user from setting the volume and -acodec copy 
the same way it's done with vhooks and -vcodec copy.

Ramiro Polla
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acodecvol.diff
Type: text/x-diff
Size: 668 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080712/12d1ede9/attachment.diff>



More information about the ffmpeg-devel mailing list