mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
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). https://bugzilla.gnome.org/show_bug.cgi?id=684568
This commit is contained in:
parent
b955c1233f
commit
c951d201ec
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue