mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
matroska: fix content encoding scope validity check
It's 3 bits, and http://matroska.org/technical/specs/index.html says it can't be 0. Coverity 1139660
This commit is contained in:
parent
54c5710adb
commit
d9eb5f7fde
1 changed files with 1 additions and 1 deletions
|
@ -2664,7 +2664,7 @@ gst_matroska_read_common_read_track_encoding (GstMatroskaReadCommon * common,
|
|||
if ((ret = gst_ebml_read_uint (ebml, &id, &num)) != GST_FLOW_OK)
|
||||
break;
|
||||
|
||||
if (num > 7 && num == 0) {
|
||||
if (num > 7 || num == 0) {
|
||||
GST_ERROR_OBJECT (common, "Invalid ContentEncodingScope %"
|
||||
G_GUINT64_FORMAT, num);
|
||||
ret = GST_FLOW_ERROR;
|
||||
|
|
Loading…
Reference in a new issue