diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 0f843f3697..42bff728c0 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -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");