changeset 2406:25a24139f296 libavcodec

WV1F support
author michael
date Sat, 01 Jan 2005 23:02:09 +0000
parents 21c5ef8a4ff7
children cb521eadf9ae
files h263.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Fri Dec 31 17:37:23 2004 +0000
+++ b/h263.c	Sat Jan 01 23:02:09 2005 +0000
@@ -4580,7 +4580,7 @@
                 memset(block, 0, sizeof(DCTELEM)*64);
                 goto retry;
             }
-            av_log(s->avctx, AV_LOG_ERROR, "run overflow at %dx%d\n", s->mb_x, s->mb_y);
+            av_log(s->avctx, AV_LOG_ERROR, "run overflow at %dx%d i:%d\n", s->mb_x, s->mb_y, s->mb_intra);
             return -1;
         }
         j = scan_table[i];
@@ -5923,6 +5923,13 @@
 
     /* search next start code */
     align_get_bits(gb);
+
+    if(s->avctx->codec_tag == ff_get_fourcc("WV1F") && show_bits(gb, 24) == 0x575630){
+        skip_bits(gb, 24);
+        if(get_bits(gb, 8) == 0xF0)
+            return decode_vop_header(s, gb);
+    }
+
     startcode = 0xff;
     for(;;) {
         v = get_bits(gb, 8);