[svn] / branches / dev-api-3 / xvidcore / src / decoder.c Repository:
ViewVC logotype

Diff of /branches/dev-api-3/xvidcore/src/decoder.c

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

revision 635, Fri Nov 8 10:30:59 2002 UTC revision 636, Fri Nov 8 22:34:16 2002 UTC
# Line 55  Line 55 
55   *  22.12.2001  lock based interpolation   *  22.12.2001  lock based interpolation
56   *  01.12.2001  inital version; (c)2001 peter ross <pross@cs.rmit.edu.au>   *  01.12.2001  inital version; (c)2001 peter ross <pross@cs.rmit.edu.au>
57   *   *
58   *  $Id: decoder.c,v 1.37.2.8 2002-11-07 10:28:15 suxen_drol Exp $   *  $Id: decoder.c,v 1.37.2.9 2002-11-08 22:34:16 suxen_drol Exp $
59   *   *
60   *************************************************************************/   *************************************************************************/
61    
# 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;
# Line 1481  Line 1480 
1480                                           frame->image, frame->stride, frame->colorspace, dec->interlacing);                                           frame->image, frame->stride, frame->colorspace, dec->interlacing);
1481                  return XVID_ERR_OK;                  return XVID_ERR_OK;
1482          }          }
 #endif  
1483    
1484          // add by chenm001 <chenm001@163.com>          // add by chenm001 <chenm001@163.com>
1485          // for support B-frame to reference last 2 frame          // for support B-frame to reference last 2 frame

Legend:
Removed from v.635  
changed lines
  Added in v.636

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