[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 11:57:33 CET 2013


> For PCM codecs, frame_size is 0 and calling
> av_samples_get_buffer_size() makes no sense.
> av_samples_get_buffer_size() returns AVERROR(EINVAL)
> which happens to be "-22".

Thanks Carl!    This is immensely helpful!


More information about the Libav-user mailing list