[Bug 731347] libav: If codec sets channels to 0, gst_ffmpegauddec_get_buffer () crashes

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jun 6 14:52:40 PDT 2014


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

--- Comment #2 from GstBlub <gstblub at gmail.com> 2014-06-06 21:52:37 UTC ---
I'm not sure though if looking at AVFrame will help (maybe if we used
get_buffer2):  channel_layout = 0, and there doesn't appear to be a channels
field in the version we're using.

gdb) frame 5
#5  0x00007fffc17a9147 in ff_get_buffer (avctx=avctx at entry=0x7fffd00133c0,
frame=0x7fffc2db80e0, flags=flags at entry=0) at libavcodec/utils.c:646
646             ret = avctx->get_buffer(avctx, frame);
(gdb) print *frame
$3 = {data = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, linesize = {0, 0, 0, 0,
0, 0, 0, 0}, extended_data = 0x7fffc2db80e0, width = 0, height = 0, nb_samples
= 2048, format = 8, key_frame = 1, pict_type = 0, base = {0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, sample_aspect_ratio = {num = 0, den =
1}, pts = -9223372036854775808, pkt_pts = 0, pkt_dts = 0, coded_picture_number
= 0, display_picture_number = 0, quality = 0, reference = 0,
  qscale_table = 0x0, qstride = 0, qscale_type = 0, mbskip_table = 0x0,
motion_val = {0x0, 0x0}, mb_type = 0x0, dct_coeff = 0x0, ref_index = {0x0,
0x0}, opaque = 0x0, error = {0, 0, 0, 0, 0, 0, 0, 0}, type = 0,
  repeat_pict = 0, interlaced_frame = 0, top_field_first = 0,
palette_has_changed = 0, buffer_hints = 0, pan_scan = 0x0, reordered_opaque =
-9223372036854775808, hwaccel_picture_private = 0x0, owner = 0x0,
  thread_opaque = 0x0, motion_subsample_log2 = 0 '\000', sample_rate = 44100,
channel_layout = 0, buf = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
extended_buf = 0x0, nb_extended_buf = 0, side_data = 0x0,
  nb_side_data = 0, flags = 0}

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