shithub: libvpx

Download patch

ref: 4e00f56cd6f664c14b7f657d722f63e9832434d4
parent: 262f66e6ed9d2164168455efc65e32f4828c0924
parent: 4fcf726a0e32928e85a46f4dac534524a19bdc39
author: Yaowu Xu <yaowu@google.com>
date: Tue Jan 6 03:01:40 EST 2015

Merge "Return error on wrong sync code"

--- a/vp8/vp8_dx_iface.c
+++ b/vp8/vp8_dx_iface.c
@@ -188,7 +188,7 @@
 
             /* vet via sync code */
             if (clear[3] != 0x9d || clear[4] != 0x01 || clear[5] != 0x2a)
-                res = VPX_CODEC_UNSUP_BITSTREAM;
+                return VPX_CODEC_UNSUP_BITSTREAM;
 
             si->w = (clear[6] | (clear[7] << 8)) & 0x3fff;
             si->h = (clear[8] | (clear[9] << 8)) & 0x3fff;
@@ -402,7 +402,7 @@
     if (!res)
     {
         VP8D_COMP *pbi = ctx->yv12_frame_buffers.pbi[0];
-        if(resolution_change)
+        if (resolution_change)
         {
             VP8_COMMON *const pc = & pbi->common;
             MACROBLOCKD *const xd  = & pbi->mb;