[Libav-user] Why (c->frame_size = 0) ? -> Could not allocate -22 bytes for samples buffer

Joe Flowers joe.flowers at nofreewill.com
Fri Mar 1 15:51:58 CET 2013

Thanks Carl!   This is the point at which I am at today. Hopefully
this thing will start working today.

ret=pcm_encode_frame(avctx, &avpkt, frame, &got_packet_ptr);

At this point, ret=0, got_packet_ptr=1, avpkt.data has something in it
- not sure if it's garbage or not yet, BUT avpkt.size is 0.

On Fri, Mar 1, 2013 at 9:36 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Joe Flowers <joe.flowers at ...> writes:
>> Does this mean that when encoding raw s16le data to
>> AV_CODEC_ID_PCM_S16LE that I should expect a pkt.size = 0 too, even
>> though the pkt.data have the correctly encoded data in it?
> I did not test but this sounds unlikely / impossible to me.

More information about the Libav-user mailing list