# HG changeset patch # User michael # Date 1071023649 0 # Node ID f17ba52fec0859064859f83c46e398dd9551d3b5 # Parent 1c9e8e499c5660e971a129e4fc69983b75eb5fc8 MB_TYPE_INTERLACED info fix diff -r 1c9e8e499c56 -r f17ba52fec08 mpeg12.c --- a/mpeg12.c Tue Dec 09 14:51:49 2003 +0000 +++ b/mpeg12.c Wed Dec 10 02:34:09 2003 +0000 @@ -1170,7 +1170,7 @@ } } else { /* MT_16X8 */ - mb_type |= MB_TYPE_16x8; + mb_type |= MB_TYPE_16x8 | MB_TYPE_INTERLACED; s->mv_type = MV_TYPE_16X8; for(j=0;j<2;j++) { s->field_select[i][j] = get_bits1(&s->gb); @@ -1201,7 +1201,7 @@ dprintf("fmy=%d\n", val); } } else { - mb_type |= MB_TYPE_16x16; + mb_type |= MB_TYPE_16x16 | MB_TYPE_INTERLACED; s->field_select[i][0] = get_bits1(&s->gb); for(k=0;k<2;k++) { val = mpeg_decode_motion(s, s->mpeg_f_code[i][k], @@ -1259,6 +1259,9 @@ } } break; + default: + av_log(s->avctx, AV_LOG_ERROR, "00 motion_type at %d %d\n", s->mb_x, s->mb_y); + return -1; } } }