# HG changeset patch # User astrange # Date 1215036233 0 # Node ID 847e1fc5c2a1b3c7eb1d6d28dd41955583ced2ef # Parent 9a31b6a8ae527db0a6750aac485b46b331639645 Don't generate two copies of hl_decode_mb() under ENABLE_SMALL. (assuming your compiler removes unused static functions) diff -r 9a31b6a8ae52 -r 847e1fc5c2a1 h264.c --- a/h264.c Wed Jul 02 21:46:18 2008 +0000 +++ b/h264.c Wed Jul 02 22:03:53 2008 +0000 @@ -2726,7 +2726,7 @@ MpegEncContext * const s = &h->s; const int mb_xy= h->mb_xy; const int mb_type= s->current_picture.mb_type[mb_xy]; - int is_complex = FRAME_MBAFF || MB_FIELD || IS_INTRA_PCM(mb_type) || s->codec_id != CODEC_ID_H264 || (ENABLE_GRAY && (s->flags&CODEC_FLAG_GRAY)) || (ENABLE_H264_ENCODER && s->encoding); + int is_complex = FRAME_MBAFF || MB_FIELD || IS_INTRA_PCM(mb_type) || s->codec_id != CODEC_ID_H264 || (ENABLE_GRAY && (s->flags&CODEC_FLAG_GRAY)) || (ENABLE_H264_ENCODER && s->encoding) || ENABLE_SMALL; if(ENABLE_H264_ENCODER && !s->decode) return;