diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 89793a5794..ed7409157a 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -2239,7 +2239,7 @@ static int mpeg_decode_frame(AVCodecContext *avctx, *data_size = sizeof(AVFrame); } - return 0; + return buf_size; } if(s2->flags&CODEC_FLAG_TRUNCATED){