diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2014-04-21 13:44:15 +0100 |
---|---|---|
committer | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2014-04-21 17:21:20 +0100 |
commit | d9eb5f7fde528923d96b413007af78395405a2bc (patch) | |
tree | 2af738d5c81bd48c1d3ad3ccf1836c45887e9abf | |
parent | 54c5710adbe58001a66a5159af79293876c5aba0 (diff) |
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
-rw-r--r-- | gst/matroska/matroska-read-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/matroska/matroska-read-common.c b/gst/matroska/matroska-read-common.c index fd10924ba..da7072071 100644 --- a/gst/matroska/matroska-read-common.c +++ b/gst/matroska/matroska-read-common.c @@ -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; |