--- decoder.c 2002/11/07 10:28:15 1.37.2.8 +++ decoder.c 2002/11/11 15:49:29 1.37.2.10 @@ -55,7 +55,7 @@ * 22.12.2001 lock based interpolation * 01.12.2001 inital version; (c)2001 peter ross * - * $Id: decoder.c,v 1.37.2.8 2002/11/07 10:28:15 suxen_drol Exp $ + * $Id: decoder.c,v 1.37.2.10 2002/11/11 15:49:29 Isibaar Exp $ * *************************************************************************/ @@ -1470,18 +1470,17 @@ BitstreamInit(&bs, frame->bitstream, frame->length); -#ifdef BFRAMES_DEC // XXX: 0x7f is only valid whilst decoding vfw xvid/divx5 avi's - if(BitstreamShowBits(&bs, 8) == 0x7f) + if(frame->length == 1 && BitstreamShowBits(&bs, 8) == 0x7f) { if (stats) stats->notify = XVID_DEC_VOP; frame->length = 1; - image_output(&dec->cur, dec->width, dec->height, dec->edged_width, + image_output(&dec->refn[0], dec->width, dec->height, dec->edged_width, frame->image, frame->stride, frame->colorspace, dec->interlacing); + emms(); return XVID_ERR_OK; } -#endif // add by chenm001 // for support B-frame to reference last 2 frame