ref: e844624a0e123bc58ed919b498f39dd0bd1a0034
parent: b94d618fc9a7fe7a6bddb6fe30d647805e2fc629
parent: 0f3cffa685364706161362e8893758fadf270f60
author: Dmitry Kovalev <[email protected]>
date: Fri Feb 7 13:14:32 EST 2014
Merge "Fixing undefined behavior vp9_peek_si()."
--- a/vp9/vp9_dx_iface.c
+++ b/vp9/vp9_dx_iface.c
@@ -148,7 +148,9 @@
{
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);
+ const int version = vp9_rb_read_bit(&rb);
+ (void) vp9_rb_read_bit(&rb); // unused version bit
+
if (frame_marker != VP9_FRAME_MARKER)
return VPX_CODEC_UNSUP_BITSTREAM;
#if CONFIG_NON420