Commit bc6d7776 authored by Michael Niedermayer's avatar Michael Niedermayer

hurry up support

returning buf_size insetad of 0

Originally committed as revision 767 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 22b13d5b
...@@ -2577,6 +2577,8 @@ static int svq1_decode_frame(AVCodecContext *avctx, ...@@ -2577,6 +2577,8 @@ static int svq1_decode_frame(AVCodecContext *avctx,
#endif #endif
return result; return result;
} }
if(avctx->hurry_up && s->pict_type==B_TYPE) return buf_size;
/* decode y, u and v components */ /* decode y, u and v components */
for (i=0; i < 3; i++) { for (i=0; i < 3; i++) {
...@@ -2645,7 +2647,7 @@ static int svq1_decode_frame(AVCodecContext *avctx, ...@@ -2645,7 +2647,7 @@ static int svq1_decode_frame(AVCodecContext *avctx,
} }
*data_size=sizeof(AVPicture); *data_size=sizeof(AVPicture);
return 0; return buf_size;
} }
static int svq1_decode_init(AVCodecContext *avctx) static int svq1_decode_init(AVCodecContext *avctx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment