[FFmpeg-devel] [PATCH+RFC] AVFrame for audio

Peter Ross pross
Sun Jul 11 09:22:45 CEST 2010


Hi,

To prototype use of audio in AVFrame, I have modified the PCM encoder/decoder
and addded new public lavc functions.

Existing SAMPLE_FMTs are mapping onto (AVFrame*)->data[0]. The obvious
next step is to support planar audio, and splitting FF_COMMON_FRAME into
common, audio- and video-specific parts.

avctx->reget_audio_buffer() is implemened using a simple realloc. It
probably makes sense to reuse the video InternalBuffer stuff, but i'm not
sure.

Cheers,

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avframe-audio1.diff
Type: text/x-diff
Size: 15863 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100711/30ad61c0/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/20100711/30ad61c0/attachment.pgp>



More information about the ffmpeg-devel mailing list