shithub: libvpx

Download patch

ref: 7194da21677acb8c8d70a8e449f82830c68992f4
parent: 13930cf569e8e0459fa2ccd5da08e05c4b0cd11d
parent: 11e3ac62a5ebb99321119c51fc20a62c88d73cce
author: Dmitry Kovalev <dkovalev@google.com>
date: Fri Aug 23 13:08:51 EDT 2013

Merge "Fixing display size setting problem."

--- a/vp9/decoder/vp9_decodframe.c
+++ b/vp9/decoder/vp9_decodframe.c
@@ -549,8 +549,8 @@
                              struct vp9_read_bit_buffer *rb) {
   int width, height;
   read_frame_size(rb, &width, &height);
-  setup_display_size(&pbi->common, rb);
   apply_frame_size(pbi, width, height);
+  setup_display_size(&pbi->common, rb);
 }
 
 static void setup_frame_size_with_refs(VP9D_COMP *pbi,
@@ -576,8 +576,8 @@
     vpx_internal_error(&cm->error, VPX_CODEC_CORRUPT_FRAME,
                        "Referenced frame with invalid size");
 
-  setup_display_size(cm, rb);
   apply_frame_size(pbi, width, height);
+  setup_display_size(cm, rb);
 }
 
 static void decode_tile(VP9D_COMP *pbi, vp9_reader *r) {