diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-07-16 10:29:07 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-07-16 10:29:07 +0000 |
commit | bc6d7776d854c14e944606641f05eb4acdcdd428 (patch) | |
tree | cc2dce00ba8db6e7d5f5047b1d69f18f33d5d0e6 /libavcodec/svq1.c | |
parent | 22b13d5b4c5d4aa2ee234a7ba00b453036e4419e (diff) | |
download | ffmpeg-bc6d7776d854c14e944606641f05eb4acdcdd428.tar.gz |
hurry up support
returning buf_size insetad of 0
Originally committed as revision 767 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq1.c')
-rw-r--r-- | libavcodec/svq1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/svq1.c b/libavcodec/svq1.c index b43b10af37..9a538e47af 100644 --- a/libavcodec/svq1.c +++ b/libavcodec/svq1.c @@ -2577,6 +2577,8 @@ static int svq1_decode_frame(AVCodecContext *avctx, #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 @@ static int svq1_decode_frame(AVCodecContext *avctx, } *data_size=sizeof(AVPicture); - return 0; + return buf_size; } static int svq1_decode_init(AVCodecContext *avctx) |