You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 22:24:04 +02:00
avcodec/vp3: Do not return random positive values but the buf size
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit d8094a303b
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@ -2020,17 +2020,19 @@ static int vp3_decode_frame(AVCodecContext *avctx,
|
||||
ret = vp3_decode_init(avctx);
|
||||
if (ret < 0) {
|
||||
vp3_decode_end(avctx);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
return buf_size;
|
||||
} else if (type == 2) {
|
||||
ret = theora_decode_tables(avctx, &gb);
|
||||
if (ret >= 0)
|
||||
ret = vp3_decode_init(avctx);
|
||||
if (ret < 0) {
|
||||
vp3_decode_end(avctx);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
return buf_size;
|
||||
}
|
||||
|
||||
av_log(avctx, AV_LOG_ERROR,
|
||||
"Header packet passed to frame decoder, skipping\n");
|
||||
|
Reference in New Issue
Block a user