[Libav-user] I can't get audio decoding to work.
rdstevens at gmail.com
Mon Jun 27 18:30:46 CEST 2016
On Sun, Jun 26, 2016 at 2:39 AM, Bill Messenger <apothemmusic at gmail.com> wrote:
> But I tried "std::memcpy(sampleBuffer + totalBufferSize, frame->data,
> dataSize-4);", and it still gave me the same result. I even tried
> subtracting 8, 16, 32, 64, and so on, and it still gave the same result.
> When I go up to dataSize/2, however, it doesn't give me that UNADDRESSABLE
> ACCESS error. Does frame->data only contain half of the data for planar
look at frame->data, , etc. If they are not null then there is data there.
frame->linesize tells you how many bytes you can copy from data;
linesize tells you how much data is in data, etc.
More information about the Libav-user