[FFmpeg-devel] [PATCH] Fix linesize and data pointers for packed data in AVFilterBufferRef
Michael Niedermayer
michaelni
Wed Aug 25 10:49:19 CEST 2010
On Wed, Aug 25, 2010 at 12:42:08AM -0700, S.N. Hemanth Meenakshisundaram wrote:
>
> This is a correction to the way the buffer pointers and linesizes are
> set for each channel in AVFilterBufferRef for audio data.
>
> In both planar and packed, data[i] should contain a pointer to the
> beginning of ith channel data and linesize[i] should contain the number
> of bytes to next sample of the ith channel.
>
> Earlier there was a bug in the way this was set for packed and was wrong
> for planar.
>
> Now for planar,
>
> Each data[i] points to the start of data for that channel and
> linesize[i] is equal to sample size for all channels (e.g. 2 bytes for S16).
>
> For packed,
>
> linesize[i] is equal to sample size * number of channels and data[i]
> points to first sample of that channel.
if all linesizes are equal there is no need to set more than [0]
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
If you really think that XML is the answer, then you definitly missunderstood
the question -- Attila Kinali
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100825/d5432c87/attachment.pgp>
More information about the ffmpeg-devel
mailing list