vpxdec: Restore IVF support.
authorTom Finegan <tomfinegan@google.com>
Sat, 16 Nov 2013 16:31:20 +0000 (08:31 -0800)
committerTom Finegan <tomfinegan@google.com>
Sat, 16 Nov 2013 16:31:20 +0000 (08:31 -0800)
Refactored IVF frame reading code out into ivf_read_frame(). Forgot
to actually make the function call in read_frame().

Change-Id: Ie9f6917e70bd26d0352a761932465c60a29a1f81

vpxdec.c

index a5bb1c5..ab9bc7c 100644 (file)
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -245,6 +245,9 @@ static int read_frame(struct VpxDecInputContext *input,
     }
 
     return 0;
+  } else if (kind == FILE_TYPE_IVF) {
+    return ivf_read_frame(input->vpx_input_ctx,
+                          buf, bytes_in_buffer, buffer_size);
   }
 
   return 1;