[Bug 680487] avenc_wmav1: errors out with default bitrate - output buffer size is too small

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sun Dec 2 04:30:52 PST 2012


https://bugzilla.gnome.org/show_bug.cgi?id=680487
  GStreamer | gst-libav | git

--- Comment #3 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2012-12-02 12:30:44 UTC ---
> ERROR libav gstavenc.c:386:gst_ffmpegaudenc_encode_audio:<avenc_wmav1-0> Failed
> to encode buffer: -22

This *appears* to be caused by:

    if (buf_size < 2 * MAX_CODED_SUPERFRAME_SIZE) {
        av_log(avctx, AV_LOG_ERROR, "output buffer size is too small\n");
        return AVERROR(EINVAL);
    }

in wmaenc.c, with 

 wma.h:#define MAX_CODED_SUPERFRAME_SIZE 16384

frame.

Since context->frame_size in set_format() is 2048, and we deliver that many
samples, it looks like it might be a bug in liibav.

It works fine when forcing the input to channels=2, in which case
context->frame_size is 8192 and it all works fine.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list