Mercurial > libavcodec.hg
comparison h264.c @ 7179:847e1fc5c2a1 libavcodec
Don't generate two copies of hl_decode_mb() under ENABLE_SMALL.
(assuming your compiler removes unused static functions)
author | astrange |
---|---|
date | Wed, 02 Jul 2008 22:03:53 +0000 |
parents | 9a31b6a8ae52 |
children | 4acdafd254bf |
comparison
equal
deleted
inserted
replaced
7178:9a31b6a8ae52 | 7179:847e1fc5c2a1 |
---|---|
2724 | 2724 |
2725 static void hl_decode_mb(H264Context *h){ | 2725 static void hl_decode_mb(H264Context *h){ |
2726 MpegEncContext * const s = &h->s; | 2726 MpegEncContext * const s = &h->s; |
2727 const int mb_xy= h->mb_xy; | 2727 const int mb_xy= h->mb_xy; |
2728 const int mb_type= s->current_picture.mb_type[mb_xy]; | 2728 const int mb_type= s->current_picture.mb_type[mb_xy]; |
2729 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); | 2729 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; |
2730 | 2730 |
2731 if(ENABLE_H264_ENCODER && !s->decode) | 2731 if(ENABLE_H264_ENCODER && !s->decode) |
2732 return; | 2732 return; |
2733 | 2733 |
2734 if (is_complex) | 2734 if (is_complex) |