summaryrefslogtreecommitdiff
path: root/contrib/ffmpeg/libavcodec/shorten.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ffmpeg/libavcodec/shorten.c')
-rw-r--r--contrib/ffmpeg/libavcodec/shorten.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/ffmpeg/libavcodec/shorten.c b/contrib/ffmpeg/libavcodec/shorten.c
index 358ecf23f..efb48b51d 100644
--- a/contrib/ffmpeg/libavcodec/shorten.c
+++ b/contrib/ffmpeg/libavcodec/shorten.c
@@ -293,7 +293,8 @@ static int shorten_decode_frame(AVCodecContext *avctx,
s->bitstream_size= buf_size;
if(buf_size < s->max_framesize){
- //dprintf("wanna more data ... %d\n", buf_size);
+ //dprintf(avctx, "wanna more data ... %d\n", buf_size);
+ *data_size = 0;
return input_buf_size;
}
}
@@ -471,6 +472,7 @@ static int shorten_decode_frame(AVCodecContext *avctx,
s->blocksize = get_uint(s, av_log2(s->blocksize));
break;
case FN_QUIT:
+ *data_size = 0;
return buf_size;
break;
default: