# HG changeset patch # User diego # Date 1231293484 0 # Node ID 2cc3cf7b09b1d607fa8abeb35f11dd328b4ce767 # Parent 5a923bd4f5c6d3dcfe95a78590b95a1c02ee34f0 Disable SVQ3 checks if SVQ3 support is not compiled in. diff -r 5a923bd4f5c6 -r 2cc3cf7b09b1 h264.c --- 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);