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

Justin Ruggles justin.ruggles
Sun Nov 1 04:30:05 CET 2009


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


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



More information about the ffmpeg-devel mailing list