summaryrefslogtreecommitdiff
path: root/libavcodec/vble.c
diff options
context:
space:
mode:
authorPiotr Bandurski <ami_stuff@o2.pl>2012-11-27 14:05:46 +0000
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-11-27 17:16:04 -0500
commitf5fa03660db16f9d78abc5a626438b4d0b54f563 (patch)
treebbca998ed044b96732b8f894fb0c109e2ec19f37 /libavcodec/vble.c
parent1d86aa8b0f491f06e848026c7704daa39a54f523 (diff)
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>
Diffstat (limited to 'libavcodec/vble.c')
-rw-r--r--libavcodec/vble.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/vble.c b/libavcodec/vble.c
index d112e273b4..5dc274c13c 100644
--- a/libavcodec/vble.c
+++ b/libavcodec/vble.c
@@ -141,10 +141,8 @@ static int vble_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
/* Version should always be 1 */
version = AV_RL32(src);
- if (version != 1) {
- av_log(avctx, AV_LOG_ERROR, "Unsupported VBLE Version: %d\n", version);
- return AVERROR_INVALIDDATA;
- }
+ if (version != 1)
+ av_log(avctx, AV_LOG_WARNING, "Unsupported VBLE Version: %d\n", version);
init_get_bits(&gb, src + 4, (avpkt->size - 4) * 8);