h264parse: Do not check for VUI parameters if they were not present in the SPS

This commit is contained in:
Youness Alaoui 2013-03-25 18:30:18 -04:00 committed by Olivier Crête
parent 92e9988a40
commit ece3d1c2f6

View file

@ -1296,6 +1296,10 @@ gst_h264_parse_get_timestamp (GstH264Parse * h264parse,
if (!sps) {
GST_DEBUG_OBJECT (h264parse, "referred SPS invalid");
goto exit;
} else if (!sps->vui_parameters_present_flag) {
GST_DEBUG_OBJECT (h264parse,
"unable to compute timestamp: VUI not present");
goto exit;
} else if (!sps->vui_parameters.timing_info_present_flag) {
GST_DEBUG_OBJECT (h264parse,
"unable to compute timestamp: timing info not present");