changeset 10382:d4d925400ba2 libavcodec

Warn when WVC1 cannot be decoded
author kostya
date Sun, 11 Oct 2009 05:36:59 +0000
parents 9262948fd649
children 3e26c8528a6b
files vc1dec.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vc1dec.c	Sat Oct 10 14:43:31 2009 +0000
+++ b/vc1dec.c	Sun Oct 11 05:36:59 2009 +0000
@@ -3191,6 +3191,8 @@
 
             buf_size2 = vc1_unescape_buffer(buf, divider - buf, buf2);
             // TODO
+            if(!v->warn_interlaced++)
+                av_log(v->s.avctx, AV_LOG_ERROR, "Interlaced WVC1 support is not implemented\n");
             av_free(buf2);return -1;
         }else{
             buf_size2 = vc1_unescape_buffer(buf, buf_size, buf2);