Commit c951d201 authored by Gwenole Beauchesne's avatar Gwenole Beauchesne Committed by Tim-Philipp Müller

codecparsers: h264: fix error code for invalid size parsed in SPS.

gst_h264_parse_sps() returned FALSE if it parsed invalid (negative)
size components. Now make it gracefully return GST_H264_PARSER_ERROR
instead of GST_H264_PARSER_OK (FALSE).
parent b955c123
......@@ -1555,7 +1555,7 @@ gst_h264_parse_sps (GstH264NalUnit * nalu, GstH264SPS * sps,
* subhc[sps->chroma_format_idc] * (2 - sps->frame_mbs_only_flag));
if (width < 0 || height < 0) {
GST_WARNING ("invalid width/height in SPS");
return FALSE;
goto error;
GST_LOG ("final width=%u, height=%u", width, height);
sps->width = width;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment