[FFmpeg-cvslog] r9856 - trunk/libavcodec/mpeg12.c
michael
subversion
Wed Aug 1 21:26:24 CEST 2007
Author: michael
Date: Wed Aug 1 21:26:24 2007
New Revision: 9856
Log:
merge/simplify 2 if()
~4 cpu cylces faster for the matrixbench video
Modified:
trunk/libavcodec/mpeg12.c
Modified: trunk/libavcodec/mpeg12.c
==============================================================================
--- trunk/libavcodec/mpeg12.c (original)
+++ trunk/libavcodec/mpeg12.c Wed Aug 1 21:26:24 2007
@@ -366,12 +366,8 @@ static int mpeg_decode_mb(MpegEncContext
motion_type = MT_FRAME;
else{
motion_type = get_bits(&s->gb, 2);
- }
-
- /* 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 (s->picture_structure == PICT_FRAME && HAS_CBP(mb_type))
+ s->interlaced_dct = get_bits1(&s->gb);
}
if (IS_QUANT(mb_type))
More information about the ffmpeg-cvslog
mailing list