changeset 1641:0226cad80fc2 libavcodec

cleanup
author michael
date Sun, 30 Nov 2003 17:30:18 +0000
parents 3bc71266e644
children e83980313d3f
files h263.c mpegvideo.c mpegvideo.h rv10.c
diffstat 4 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Sun Nov 30 17:22:51 2003 +0000
+++ b/h263.c	Sun Nov 30 17:30:18 2003 +0000
@@ -3938,7 +3938,7 @@
         }
     } else if (s->mb_intra) {
         /* DC coef */
-        if(s->h263_rv10){
+        if(s->codec_id == CODEC_ID_RV10){
           if (s->rv10_version == 3 && s->pict_type == I_TYPE) {
             int component, diff;
             component = (n <= 3 ? 0 : n - 4 + 1);
@@ -3999,7 +3999,7 @@
                 run = get_bits(&s->gb, 6);
                 level = (int8_t)get_bits(&s->gb, 8);
                 if(level == -128){
-                    if (s->h263_rv10) {
+                    if (s->codec_id == CODEC_ID_RV10) {
                         /* XXX: should patch encoder too */
                         level = get_sbits(&s->gb, 12);
                     }else{
--- a/mpegvideo.c	Sun Nov 30 17:22:51 2003 +0000
+++ b/mpegvideo.c	Sun Nov 30 17:30:18 2003 +0000
@@ -796,7 +796,6 @@
         break;
     case CODEC_ID_RV10:
         s->out_format = FMT_H263;
-        s->h263_rv10 = 1;
         avctx->delay=0;
         s->low_delay=1;
         break;
@@ -3782,7 +3781,7 @@
             msmpeg4_encode_picture_header(s, picture_number);
         else if (s->h263_pred)
             mpeg4_encode_picture_header(s, picture_number);
-        else if (s->h263_rv10) 
+        else if (s->codec_id == CODEC_ID_RV10) 
             rv10_encode_picture_header(s, picture_number);
         else if (s->codec_id == CODEC_ID_FLV1)
             ff_flv_encode_picture_header(s, picture_number);
--- a/mpegvideo.h	Sun Nov 30 17:22:51 2003 +0000
+++ b/mpegvideo.h	Sun Nov 30 17:30:18 2003 +0000
@@ -266,7 +266,6 @@
 
 /* the following codec id fields are deprecated in favor of codec_id */
     int h263_plus;    ///< h263 plus headers 
-    int h263_rv10;    ///< use RV10 variation for H263 
     int h263_msmpeg4; ///< generate MSMPEG4 compatible stream (deprecated, use msmpeg4_version instead)
     int h263_intel;   ///< use I263 intel h263 header 
     int h263_flv;     ///< use flv h263 header 
--- a/rv10.c	Sun Nov 30 17:22:51 2003 +0000
+++ b/rv10.c	Sun Nov 30 17:30:18 2003 +0000
@@ -402,17 +402,14 @@
     case 0x10000000:
         s->rv10_version= 0;
         s->h263_long_vectors=0;
-        s->h263_rv10 = 1;
         break;
     case 0x10003000:
         s->rv10_version= 3;
         s->h263_long_vectors=1;
-        s->h263_rv10 = 1;
         break;
     case 0x10003001:
         s->rv10_version= 3;
         s->h263_long_vectors=0;
-        s->h263_rv10 = 1;
         break;
     case 0x20001000:
     case 0x20100001: //ok