1367 |
if (vop_type == I_VOP || vop_type == P_VOP) { |
if (vop_type == I_VOP || vop_type == P_VOP) { |
1368 |
image_swap(&dec->refn[0], &dec->refn[1]); |
image_swap(&dec->refn[0], &dec->refn[1]); |
1369 |
image_swap(&dec->cur, &dec->refn[0]); |
image_swap(&dec->cur, &dec->refn[0]); |
1370 |
|
|
1371 |
// swap MACROBLOCK |
// swap MACROBLOCK |
1372 |
if (!dec->low_delay && vop_type == P_VOP) |
// the Divx will not set the low_delay flage some times |
1373 |
|
// so follow code will wrong to not swap at that time |
1374 |
|
// this will broken bitstream! so I'm change it, |
1375 |
|
// But that is not the best way! can anyone tell me how |
1376 |
|
// to do another way? |
1377 |
|
// 18-07-2002 MinChen<chenm001@163.com> |
1378 |
|
//if (!dec->low_delay && vop_type == P_VOP) |
1379 |
|
if (vop_type == P_VOP) |
1380 |
mb_swap(&dec->mbs, &dec->last_mbs); |
mb_swap(&dec->mbs, &dec->last_mbs); |
1381 |
} |
} |
1382 |
|
|