[Bug 691712] [API] codecparsers: add GstMetas to pass parsing results downstream

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jul 24 22:11:50 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=691712
  GStreamer | gst-plugins-bad | git

--- Comment #47 from Gwenole Beauchesne <gb.devel at gmail.com> 2013-07-25 05:11:45 UTC ---
(In reply to comment #46)
> Review of attachment 250047 [details]:
> 
> ::: gst/videoparsers/gstmpegvideoparse.c
> @@ +622,3 @@
> +    if (slice_index >= mpvparse->slice_info_array->len)
> +      mpvparse->slice_info_array = g_array_set_size
> (mpvparse->slice_info_array,
> +          mpvparse->slice_info_array->len + 1);
> 
> I don't think GArray works like a GList whereby you need to re-assign the
> output to the variable. :)
> 
> Another g_array_set_size() is missing elsewhere when you have completed to
> parse all slices to set the final GArray->len to the actual number of slices.
> This happens when you have less slices than the estimated amount of slices used
> to pre-allocate the array.
> 
> Unless I missed a slice_info_array->len assignment elsewhere?

Besides, we need a way to identify holes in the slice_info_array, i.e. cases
where we did not parse slice headers in the middle, that is missing info from
the bitstream to begin with. Maybe add a "valid" field in GstMpegVideoSliceHdr
struct?

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