Mercurial > libavcodec.hg
changeset 8372:5917f39590e3 libavcodec
Skip chroma handling when there is no coded chroma.
0.5% overall speedup for the cathedral sample.
author | michael |
---|---|
date | Thu, 18 Dec 2008 00:46:54 +0000 |
parents | 2ebc9b2c7459 |
children | 5961d2deb35f |
files | h264.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Wed Dec 17 20:17:07 2008 +0000 +++ b/h264.c Thu Dec 18 00:46:54 2008 +0000 @@ -2547,7 +2547,7 @@ } } - 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;