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

Diff of /xvidcore/src/decoder.c

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

revision 1.37.2.8, Thu Nov 7 10:28:15 2002 UTC revision 1.37.2.10, Mon Nov 11 15:49:29 2002 UTC
# Line 1470  Line 1470 
1470    
1471          BitstreamInit(&bs, frame->bitstream, frame->length);          BitstreamInit(&bs, frame->bitstream, frame->length);
1472    
 #ifdef BFRAMES_DEC  
1473          // XXX: 0x7f is only valid whilst decoding vfw xvid/divx5 avi's          // XXX: 0x7f is only valid whilst decoding vfw xvid/divx5 avi's
1474          if(BitstreamShowBits(&bs, 8) == 0x7f)          if(frame->length == 1 && BitstreamShowBits(&bs, 8) == 0x7f)
1475          {          {
1476                  if (stats)                  if (stats)
1477                          stats->notify = XVID_DEC_VOP;                          stats->notify = XVID_DEC_VOP;
1478                  frame->length = 1;                  frame->length = 1;
1479                  image_output(&dec->cur, dec->width, dec->height, dec->edged_width,                  image_output(&dec->refn[0], dec->width, dec->height, dec->edged_width,
1480                                           frame->image, frame->stride, frame->colorspace, dec->interlacing);                                           frame->image, frame->stride, frame->colorspace, dec->interlacing);
1481                    emms();
1482                  return XVID_ERR_OK;                  return XVID_ERR_OK;
1483          }          }
 #endif  
1484    
1485          // add by chenm001 <chenm001@163.com>          // add by chenm001 <chenm001@163.com>
1486          // for support B-frame to reference last 2 frame          // for support B-frame to reference last 2 frame

Legend:
Removed from v.1.37.2.8  
changed lines
  Added in v.1.37.2.10

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