[Bug 768921] Avformat demuxer

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jul 25 14:31:25 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=768921

--- Comment #3 from atopilski at gmail.com <atopilski at gmail.com> ---
i added this code:

AVIOContext* pb = NULL;
int res = avio_open_dyn_buf(&pb);
if (res == 0) {
  res = ff_isom_write_avcc(pb, context->extradata, context->extradata_size);
  if (res == 0) {
    uint8_t* out = NULL;
    int len = avio_close_dyn_buf(pb, &out);
    GstBuffer *data = gst_buffer_new_and_alloc (len);
    gst_buffer_fill (data, 0, out, len);
    gst_caps_set_simple(caps, "codec_data", GST_TYPE_BUFFER, data, NULL);
    gst_buffer_unref (data);
    av_free(out);
  }
}

how i can understand libav internal data which placed in context->extradata not
in avc format, i convert it, and after that stream conversion worked as needed.

-- 
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