changeset 561:2d5ae7516af0 libavcodec

hurry up support returning buf_size insetad of 0
author michaelni
date Tue, 16 Jul 2002 10:29:07 +0000
parents 81227ab62678
children 23e58889a108
files svq1.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/svq1.c	Tue Jul 16 10:19:00 2002 +0000
+++ b/svq1.c	Tue Jul 16 10:29:07 2002 +0000
@@ -2577,6 +2577,8 @@
 #endif
     return result;
   }
+  
+  if(avctx->hurry_up && s->pict_type==B_TYPE) return buf_size;
 
   /* decode y, u and v components */
   for (i=0; i < 3; i++) {
@@ -2645,7 +2647,7 @@
   }
 
   *data_size=sizeof(AVPicture);
-  return 0;
+  return buf_size;
 }
 
 static int svq1_decode_init(AVCodecContext *avctx)