653 |
mb->quant = quant; |
mb->quant = quant; |
654 |
|
|
655 |
if (dec->interlacing) { |
if (dec->interlacing) { |
656 |
|
if (cbp || intra) { |
657 |
mb->field_dct = BitstreamGetBit(bs); |
mb->field_dct = BitstreamGetBit(bs); |
658 |
DEBUG1("decp: field_dct: ", mb->field_dct); |
DEBUG1("decp: field_dct: ", mb->field_dct); |
659 |
|
} |
660 |
|
|
661 |
if (mb->mode == MODE_INTER || mb->mode == MODE_INTER_Q) { |
if (mb->mode == MODE_INTER || mb->mode == MODE_INTER_Q) { |
662 |
mb->field_pred = BitstreamGetBit(bs); |
mb->field_pred = BitstreamGetBit(bs); |
1379 |
|
|
1380 |
#ifdef BFRAMES_DEC |
#ifdef BFRAMES_DEC |
1381 |
// test if no B_VOP |
// test if no B_VOP |
1382 |
if (dec->low_delay) { |
if (dec->low_delay || dec->frames == 0) { |
1383 |
#endif |
#endif |
1384 |
image_output(&dec->cur, dec->width, dec->height, dec->edged_width, |
image_output(&dec->cur, dec->width, dec->height, dec->edged_width, |
1385 |
frame->image, frame->stride, frame->colorspace); |
frame->image, frame->stride, frame->colorspace); |
1386 |
|
|
1387 |
#ifdef BFRAMES_DEC |
#ifdef BFRAMES_DEC |
1388 |
} else { |
} else { |
1389 |
if (dec->frames >= 0) { |
if (dec->frames >= 1) { |
1390 |
start_timer(); |
start_timer(); |
1391 |
if ((vop_type == I_VOP || vop_type == P_VOP)) { |
if ((vop_type == I_VOP || vop_type == P_VOP)) { |
1392 |
image_output(&dec->refn[0], dec->width, dec->height, |
image_output(&dec->refn[0], dec->width, dec->height, |