GNOME Bugzilla – Bug 736047
qtdemux: check we have a corresponding stream after parsing a tfhd node
Last modified: 2016-02-22 07:50:51 UTC
Fixes a crash when there is no playable streams and qtdemux_parse_moof is called by gst_qtdemux_process_adapter, using the following sample: http://yt-dash-mse-test.commondatastorage.googleapis.com/media/car_cenc-20120827-manifest.mpd The issue is visible when the application code does not seem to handle properly (or quick enough) the error related to DRM usage.
Created attachment 285359 [details] [review] qtdemux: check we have a corresponding stream after parsing a tfhd node
Review of attachment 285359 [details] [review]: ::: gst/isomp4/qtdemux.c @@ +2794,3 @@ qtdemux_tree_get_child_by_type_full (traf_node, FOURCC_tfdt, &tfdt_data); + if (tfdt_node && stream) { Or maybe if we have no stream we shouldn't even get to this code here or at least not ask for the tfdt node?
Why is this a blocker?
Ping
This doesn't crash anymore. The stream is properly detected/reported as being encrypted.