On Tue, 27 Nov 2012, Derek Buitenhuis wrote:

From: Piotr Bandurski <[email protected]>

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 <[email protected]>
---
libavcodec/vble.c |    6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavcodec/vble.c b/libavcodec/vble.c
index d112e27..5dc274c 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);

--
1.7.10.4

Looks sensible to me

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to