[cvs] / xvidcore / src / bitstream / bitstream.c Repository:
ViewVC logotype

Diff of /xvidcore/src/bitstream/bitstream.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.39.2.22, Wed Dec 3 19:46:50 2003 UTC revision 1.39.2.23, Sat Dec 20 11:54:33 2003 UTC
# Line 1016  Line 1016 
1016    
1017                          /* read xvid bitstream version */                          /* read xvid bitstream version */
1018                          if(strncmp(tmp, "XviD", 4) == 0) {                          if(strncmp(tmp, "XviD", 4) == 0) {
1019                                    if (tmp[strlen(tmp)-1] == 'C') {
1020                                            sscanf(tmp, "XviD%dC", &dec->bs_version);
1021                                            dec->cartoon_mode = 1;
1022                                    }
1023                                    else
1024                                  sscanf(tmp, "XviD%d", &dec->bs_version);                                  sscanf(tmp, "XviD%d", &dec->bs_version);
1025    
1026                                  DPRINTF(XVID_DEBUG_HEADER, "xvid bitstream version=%i", dec->bs_version);                                  DPRINTF(XVID_DEBUG_HEADER, "xvid bitstream version=%i", dec->bs_version);
1027                          }                          }
1028    
# Line 1075  Line 1081 
1081  */  */
1082  void  void
1083  BitstreamWriteVolHeader(Bitstream * const bs,  BitstreamWriteVolHeader(Bitstream * const bs,
1084                                                  const MBParam * pParam)                                                  const MBParam * pParam,
1085                                                    const FRAMEINFO * const frame)
1086  {  {
1087          static const unsigned int vo_id = 0;          static const unsigned int vo_id = 0;
1088          static const unsigned int vol_id = 0;          static const unsigned int vol_id = 0;
# Line 1266  Line 1273 
1273    
1274          /* xvid id */          /* xvid id */
1275  #define XVID_ID "XviD" XVID_BS_VERSION  #define XVID_ID "XviD" XVID_BS_VERSION
1276          BitstreamWriteUserData(bs, XVID_ID, strlen(XVID_ID));          {
1277                    char xvid_id_string[100];
1278    
1279                    if (frame->vop_flags & XVID_VOP_CARTOON)
1280                            sprintf(xvid_id_string, "%sC", XVID_ID);
1281                    else
1282                            sprintf(xvid_id_string, "%s", XVID_ID);
1283    
1284                    BitstreamWriteUserData(bs, xvid_id_string, strlen(xvid_id_string));
1285            }
1286  }  }
1287    
1288    

Legend:
Removed from v.1.39.2.22  
changed lines
  Added in v.1.39.2.23

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4