[FFmpeg-devel] [RFC] lavc/ffmpeg sample_fmt implementation

pross at xvid.org pross
Fri Jul 25 17:08:09 CEST 2008


Hi.

This patch adds sample_fmt conversion support to lavc (and ffmpeg).

The sample_fmt behavior is modelled on pix_fmt. Codecs will need minor
modification to support sample_fmt correctly. Namely, decoders need to
report their output sample format, and encoders validate the input sample
format (or publish a list of supported formats via the AVCodec struct).
The PCM codecs are modified in this patch, and the more useful ones have
been tested.

(Nb: my earlier PCM_F32BE "codec" is included in the patch for testing
purpose only...).

Cheers,
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-sample_fmt-r1.diff
Type: text/x-diff
Size: 20598 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080726/2f2098ac/attachment.diff>
-------------- 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/20080726/2f2098ac/attachment.pgp>



More information about the ffmpeg-devel mailing list