[FFmpeg-user] [ffmpeg-user] How are audio frames decoded by libavcodec?

Roger Pack rogerdpack2 at gmail.com
Thu Nov 29 04:12:15 CET 2012

> Audio samples in the samples buffer are LPCM 16bits. To save the pts of the
> audio sample buffer i save pts of first samples. By that way, i can
> calculate pts of any sample in the buffer.
> Problem is that the calculation is correct only if the audio stream
> contains contiguous audio samples. Do ffmpeg's decoded audio frames always
> contain contiguous samples?

It...might not be guaranteed.
http://permalink.gmane.org/gmane.comp.video.ffmpeg.user/40866 may be helpful.

More information about the ffmpeg-user mailing list