From ece3d1c2f6296fb2fbd68079161643a152d2674d Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Mon, 25 Mar 2013 18:30:18 -0400 Subject: [PATCH] h264parse: Do not check for VUI parameters if they were not present in the SPS --- gst/videoparsers/gsth264parse.c | 4 ++++ 1 file changed, 4 insertions(+) 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");