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

Michael Niedermayer michaelni
Sat Jul 12 09:29:13 CEST 2008


On Sat, Jul 12, 2008 at 04:09:54AM +0100, Ramiro Polla wrote:
> 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.

ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- 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/20080712/3a2824fa/attachment.pgp>



More information about the ffmpeg-devel mailing list