vble: Do not abort decoding when version is not 1
Some combinations of OS, VirtualDub, and VBLE can accidentally set the version to a value other than 1. Since no other version of VBLE was ever released, simply warn about it. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
parent
1d86aa8b0f
commit
f5fa03660d
@ -141,10 +141,8 @@ static int vble_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
|
|||||||
/* Version should always be 1 */
|
/* Version should always be 1 */
|
||||||
version = AV_RL32(src);
|
version = AV_RL32(src);
|
||||||
|
|
||||||
if (version != 1) {
|
if (version != 1)
|
||||||
av_log(avctx, AV_LOG_ERROR, "Unsupported VBLE Version: %d\n", version);
|
av_log(avctx, AV_LOG_WARNING, "Unsupported VBLE Version: %d\n", version);
|
||||||
return AVERROR_INVALIDDATA;
|
|
||||||
}
|
|
||||||
|
|
||||||
init_get_bits(&gb, src + 4, (avpkt->size - 4) * 8);
|
init_get_bits(&gb, src + 4, (avpkt->size - 4) * 8);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user