changeset 3792:036780cfa4c2 libavcodec

simplify
author michael
date Fri, 29 Sep 2006 23:57:03 +0000
parents b1d5ef809e11
children 25ebc28bc383
files rv10.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/rv10.c	Fri Sep 29 23:34:42 2006 +0000
+++ b/rv10.c	Fri Sep 29 23:57:03 2006 +0000
@@ -516,26 +516,24 @@
     s->width = avctx->width;
     s->height = avctx->height;
 
+    s->h263_long_vectors= !!(*(uint32_t*)avctx->extradata & 0x1000000);
+
     switch(avctx->sub_id){
     case 0x10000000:
         s->rv10_version= 0;
-        s->h263_long_vectors=0;
         s->low_delay=1;
         break;
     case 0x10002000:
         s->rv10_version= 3;
-        s->h263_long_vectors=1;
         s->low_delay=1;
         s->obmc=1;
         break;
     case 0x10003000:
         s->rv10_version= 3;
-        s->h263_long_vectors=1;
         s->low_delay=1;
         break;
     case 0x10003001:
         s->rv10_version= 3;
-        s->h263_long_vectors= !!(*(uint32_t*)avctx->extradata & 0x1000000);
         s->low_delay=1;
         break;
     case 0x20001000: /* real rv20 decoder fail on this id */