Mercurial > libavcodec.hg
changeset 8543:2cc3cf7b09b1 libavcodec
Disable SVQ3 checks if SVQ3 support is not compiled in.
author | diego |
---|---|
date | Wed, 07 Jan 2009 01:58:04 +0000 |
parents | 5a923bd4f5c6 |
children | 0ae8629baf6f |
files | h264.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Tue Jan 06 23:03:33 2009 +0000 +++ b/h264.c Wed Jan 07 01:58:04 2009 +0000 @@ -2414,7 +2414,8 @@ int i; int *block_offset = &h->block_offset[0]; const int transform_bypass = !simple && (s->qscale == 0 && h->sps.transform_bypass); - const int is_h264 = simple || s->codec_id == CODEC_ID_H264; + /* is_h264 should always be true if SVQ3 is disabled. */ + const int is_h264 = !ENABLE_SVQ3_DECODER || simple || s->codec_id == CODEC_ID_H264; void (*idct_add)(uint8_t *dst, DCTELEM *block, int stride); void (*idct_dc_add)(uint8_t *dst, DCTELEM *block, int stride);