]> granicus.if.org Git - libvpx/commitdiff
Sort variables dependency in read_uncompressed_header
authorJingning Han <jingning@google.com>
Mon, 11 May 2015 17:05:58 +0000 (10:05 -0700)
committerJingning Han <jingning@google.com>
Mon, 11 May 2015 17:07:55 +0000 (10:07 -0700)
Remove a few repeated data structure reads from
read_uncompressed_header.

Change-Id: I6eb741b39f9415ad0aa4631dfbf4a1ace4eba56a

vp9/decoder/vp9_decodeframe.c

index eb9b7971074419e5e08c3f60744e0fcea0c36a64..642b158cebbf7c72e4b18506f87b58f2bf730dc2 100644 (file)
@@ -1311,8 +1311,8 @@ static void read_bitdepth_colorspace_sampling(
 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;