]> granicus.if.org Git - libvpx/commitdiff
Code clean up.
authorhkuang <hkuang@google.com>
Thu, 3 Apr 2014 23:20:26 +0000 (16:20 -0700)
committerhkuang <hkuang@google.com>
Thu, 3 Apr 2014 23:20:26 +0000 (16:20 -0700)
No need to check pbi->common.frame_to_show again.

Change-Id: I572ea4afd0d8b6000c0bb7575b7023d75cad5a4e

vp9/decoder/vp9_decoder.c

index c954a5d0e803cc9e4394ec8a5191f6a19b9ac6a8..b3e3f9c15fa216bcfe33a8d0aae0f497956fec52 100644 (file)
@@ -422,19 +422,12 @@ int vp9_get_raw_frame(VP9D_COMP *pbi, YV12_BUFFER_CONFIG *sd,
 #if CONFIG_VP9_POSTPROC
   ret = vp9_post_proc_frame(&pbi->common, sd, flags);
 #else
-
-  if (pbi->common.frame_to_show) {
     *sd = *pbi->common.frame_to_show;
     sd->y_width = pbi->common.width;
     sd->y_height = pbi->common.height;
     sd->uv_width = sd->y_width >> pbi->common.subsampling_x;
     sd->uv_height = sd->y_height >> pbi->common.subsampling_y;
-
     ret = 0;
-  } else {
-    ret = -1;
-  }
-
 #endif /*!CONFIG_POSTPROC*/
   vp9_clear_system_state();
   return ret;