[FFmpeg-devel] [PATCH] do not set sample_fmt in lavf

Justin Ruggles justin.ruggles
Sun Nov 1 04:35:10 CET 2009


Justin Ruggles wrote:

> Hi,
> 
> The libavcodec documentation for AVCodecContext.sample_fmt says:
>      * - encoding: Set by user.
>      * - decoding: Set by libavcodec.
> 
> There are 3 demuxers which are setting sample_fmt when they should not
> (and don't need to).  For Smacker Audio, the decoder should be setting
> it not the demuxer.
> 
> Patch attached.
> 
> -Justin

After a 2nd look, I think the Smacker decoder part was wrong.  New patch.

-Justin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lavf_sample_fmt.patch
Type: text/x-diff
Size: 2365 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091031/74baaf45/attachment.patch>



More information about the ffmpeg-devel mailing list