changeset 9924:5739147b9fc0 libavcodec

100l, theora_decode_init must pass on errors from vp3_decode_init
author reimar
date Mon, 06 Jul 2009 09:35:00 +0000
parents ba58c3abf832
children 2978d5f0ac0a
files vp3.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/vp3.c	Mon Jul 06 09:22:39 2009 +0000
+++ b/vp3.c	Mon Jul 06 09:35:00 2009 +0000
@@ -2291,6 +2291,7 @@
     uint8_t *header_start[3];
     int header_len[3];
     int i;
+    int ret;
 
     s->theora = 1;
 
@@ -2343,8 +2344,8 @@
         break;
   }
 
-    vp3_decode_init(avctx);
-    return 0;
+    ret = vp3_decode_init(avctx);
+    return ret;
 }
 
 AVCodec theora_decoder = {