summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis de Bethencourt <luisbg@osg.samsung.com>2015-11-18 16:01:48 +0000
committerLuis de Bethencourt <luisbg@osg.samsung.com>2015-11-18 16:06:27 +0000
commit40aa27b788c0b13250312d3f876406b27229a91a (patch)
treeb2741b4e85e1d33f3b5e961c32c347c61b4819b1
parentbd701b8ee52b8dd72db6b36f3c8179ec998756b5 (diff)
matroskamux: remove duplicate check
We want 1 or 2 streamheaders, the check if (bufarr->len != 1 && bufarr->len != 2) is enough. Not need to check if bufarr->len is <= 0 or > 255.
-rw-r--r--gst/matroska/matroska-mux.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c
index d60b86341..2f2d762b6 100644
--- a/gst/matroska/matroska-mux.c
+++ b/gst/matroska/matroska-mux.c
@@ -1616,9 +1616,7 @@ opus_streamheader_to_codecdata (const GValue * streamheader,
goto wrong_type;
bufarr = g_value_peek_pointer (streamheader);
- if (bufarr->len <= 0 || bufarr->len > 255) /* one header, and count stored in a byte */
- goto wrong_count;
- if (bufarr->len != 1 && bufarr->len != 2)
+ if (bufarr->len != 1 && bufarr->len != 2) /* one header, and count stored in a byte */
goto wrong_count;
/* Opus headers are not in-band */