shithub: libvpx

Download patch

ref: 2dcfd16fbd672993cd75586187ff3fe09a5f7ce2
parent: 913862be8c3f0ae626914cbcff98f49f50ef4ed1
parent: 2b2b461d39b861dc629a4b243da949a68313ad00
author: Jingning Han <[email protected]>
date: Mon May 11 15:11:55 EDT 2015

Merge "Sort variables dependency in read_uncompressed_header"

--- a/vp9/decoder/vp9_decodeframe.c
+++ b/vp9/decoder/vp9_decodeframe.c
@@ -1311,8 +1311,8 @@
 static size_t read_uncompressed_header(VP9Decoder *pbi,
                                        struct vp9_read_bit_buffer *rb) {
   VP9_COMMON *const cm = &pbi->common;
-  RefCntBuffer *const frame_bufs = cm->buffer_pool->frame_bufs;
-  BufferPool *const pool = pbi->common.buffer_pool;
+  BufferPool *const pool = cm->buffer_pool;
+  RefCntBuffer *const frame_bufs = pool->frame_bufs;
   int i, mask, ref_index = 0;
   size_t sz;