Revision 653f7387 libavcodec/mpeg12.c

View differences:

libavcodec/mpeg12.c
383 383
                    s->mv_type = MV_TYPE_16X16;
384 384
                    for(i=0;i<2;i++) {
385 385
                        if (USES_LIST(mb_type, i)) {
386
                            s->mv_dir |= (MV_DIR_FORWARD >> i);
386
                            s->mv_dir |= (MV_DIR_FORWARD << i);
387 387
                            /* MT_FRAME */
388 388
                            s->mv[i][0][0]= s->last_mv[i][0][0]= s->last_mv[i][1][0] =
389 389
                                mpeg_decode_motion(s, s->mpeg_f_code[i][0], s->last_mv[i][0][0]);
......
401 401
                    s->mv_type = MV_TYPE_16X8;
402 402
                    for(i=0;i<2;i++) {
403 403
                        if (USES_LIST(mb_type, i)) {
404
                            s->mv_dir |= (MV_DIR_FORWARD >> i);
404
                            s->mv_dir |= (MV_DIR_FORWARD << i);
405 405
                            /* MT_16X8 */
406 406
                            for(j=0;j<2;j++) {
407 407
                                s->field_select[i][j] = get_bits1(&s->gb);
......
422 422
                    mb_type |= MB_TYPE_16x8 | MB_TYPE_INTERLACED;
423 423
                    for(i=0;i<2;i++) {
424 424
                        if (USES_LIST(mb_type, i)) {
425
                            s->mv_dir |= (MV_DIR_FORWARD >> i);
425
                            s->mv_dir |= (MV_DIR_FORWARD << i);
426 426
                            for(j=0;j<2;j++) {
427 427
                                s->field_select[i][j] = get_bits1(&s->gb);
428 428
                                val = mpeg_decode_motion(s, s->mpeg_f_code[i][0],
......
442 442
                    mb_type |= MB_TYPE_16x16 | MB_TYPE_INTERLACED;
443 443
                    for(i=0;i<2;i++) {
444 444
                        if (USES_LIST(mb_type, i)) {
445
                            s->mv_dir |= (MV_DIR_FORWARD >> i);
445
                            s->mv_dir |= (MV_DIR_FORWARD << i);
446 446
                            s->field_select[i][0] = get_bits1(&s->gb);
447 447
                            for(k=0;k<2;k++) {
448 448
                                val = mpeg_decode_motion(s, s->mpeg_f_code[i][k],
......
460 460
                for(i=0;i<2;i++) {
461 461
                    if (USES_LIST(mb_type, i)) {
462 462
                        int dmx, dmy, mx, my, m;
463
                        s->mv_dir |= (MV_DIR_FORWARD >> i);
463
                        s->mv_dir |= (MV_DIR_FORWARD << i);
464 464
                        mx = mpeg_decode_motion(s, s->mpeg_f_code[i][0],
465 465
                                                s->last_mv[i][0][0]);
466 466
                        s->last_mv[i][0][0] = mx;

Also available in: Unified diff