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 |
|
|
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; |
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 |