Commit d8094a30 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/vp3: Do not return random positive values but the buf size

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 13332504
......@@ -2022,8 +2022,9 @@ static int vp3_decode_frame(AVCodecContext *avctx,
ret = vp3_decode_init(avctx);
if (ret < 0) {
vp3_decode_end(avctx);
return ret;
}
return ret;
return buf_size;
} else if (type == 2) {
vp3_decode_end(avctx);
ret = theora_decode_tables(avctx, &gb);
......@@ -2031,8 +2032,9 @@ static int vp3_decode_frame(AVCodecContext *avctx,
ret = vp3_decode_init(avctx);
if (ret < 0) {
vp3_decode_end(avctx);
return ret;
}
return ret;
return buf_size;
}
av_log(avctx, AV_LOG_ERROR,
......
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