]> granicus.if.org Git - libvpx/commitdiff
Using VP9_FRAME_MARKER instead of raw number.
authorDmitry Kovalev <dkovalev@google.com>
Fri, 27 Dec 2013 22:50:27 +0000 (14:50 -0800)
committerDmitry Kovalev <dkovalev@google.com>
Fri, 27 Dec 2013 22:50:27 +0000 (14:50 -0800)
Change-Id: I3addbf6d89a86a707c8df1a463da3e9e367910df

vp9/vp9_dx_iface.c

index 445198bb43b323daf74a241254f8dae2991abf03..a7d2e1d6a4edd33509ba963d51575b24a9cd117c 100644 (file)
@@ -160,7 +160,8 @@ static vpx_codec_err_t vp9_peek_si(const uint8_t         *data,
     struct vp9_read_bit_buffer rb = { data, data + data_sz, 0, NULL, NULL };
     const int frame_marker = vp9_rb_read_literal(&rb, 2);
     const int version = vp9_rb_read_bit(&rb) | (vp9_rb_read_bit(&rb) << 1);
-    if (frame_marker != 0x2) return VPX_CODEC_UNSUP_BITSTREAM;
+    if (frame_marker != VP9_FRAME_MARKER)
+      return VPX_CODEC_UNSUP_BITSTREAM;
 #if CONFIG_NON420
     if (version > 1) return VPX_CODEC_UNSUP_BITSTREAM;
 #else