mirror of https://git.ffmpeg.org/ffmpeg.git
merge/simplify 2 if()
~4 cpu cylces faster for the matrixbench video Originally committed as revision 9856 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
fecc146b28
commit
0ac6b5a301
|
@ -366,12 +366,8 @@ static int mpeg_decode_mb(MpegEncContext *s,
|
||||||
motion_type = MT_FRAME;
|
motion_type = MT_FRAME;
|
||||||
else{
|
else{
|
||||||
motion_type = get_bits(&s->gb, 2);
|
motion_type = get_bits(&s->gb, 2);
|
||||||
}
|
if (s->picture_structure == PICT_FRAME && HAS_CBP(mb_type))
|
||||||
|
s->interlaced_dct = get_bits1(&s->gb);
|
||||||
/* compute dct type */
|
|
||||||
if (s->picture_structure == PICT_FRAME && //FIXME add a interlaced_dct coded var?
|
|
||||||
!s->frame_pred_frame_dct && HAS_CBP(mb_type)) {
|
|
||||||
s->interlaced_dct = get_bits1(&s->gb);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_QUANT(mb_type))
|
if (IS_QUANT(mb_type))
|
||||||
|
|
Loading…
Reference in New Issue