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 |