aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-12-18 00:46:54 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-12-18 00:46:54 +0000
commit621561cdf37057d45e38cf1b4404e5de870b1683 (patch)
treeba2e36a49f169b45335d794f5afece9103fb1de1 /libavcodec/h264.c
parent3749076c77ee59e79f4d2649c41e7714a207e4e3 (diff)
downloadffmpeg-621561cdf37057d45e38cf1b4404e5de870b1683.tar.gz
Skip chroma handling when there is no coded chroma.
0.5% overall speedup for the cathedral sample. Originally committed as revision 16201 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 1b32645615..341b9a8302 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2547,7 +2547,7 @@ static av_always_inline void hl_decode_mb_internal(H264Context *h, int simple){
}
}
- if(simple || !ENABLE_GRAY || !(s->flags&CODEC_FLAG_GRAY)){
+ if((simple || !ENABLE_GRAY || !(s->flags&CODEC_FLAG_GRAY)) && (h->cbp&0x30)){
uint8_t *dest[2] = {dest_cb, dest_cr};
if(transform_bypass){
idct_add = idct_dc_add = s->dsp.add_pixels4;