changeset 11514:2a8845a2687f libavcodec

fix compilation with --disable-everything --enable-decoder=mpeg2video
author aurel
date Sat, 20 Mar 2010 23:18:07 +0000
parents 66da6ffd7ed5
children 34080d73a504
files error_resilience.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/error_resilience.c	Sat Mar 20 21:27:06 2010 +0000
+++ b/error_resilience.c	Sat Mar 20 23:18:07 2010 +0000
@@ -43,7 +43,7 @@
     s->dest[1] = s->current_picture.data[1] + (s->mb_y * (16>>s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16>>s->chroma_x_shift);
     s->dest[2] = s->current_picture.data[2] + (s->mb_y * (16>>s->chroma_y_shift) * s->uvlinesize) + s->mb_x * (16>>s->chroma_x_shift);
 
-    if(s->codec_id == CODEC_ID_H264){
+    if(CONFIG_H264_DECODER && s->codec_id == CODEC_ID_H264){
         H264Context *h= (void*)s;
         h->mb_xy= s->mb_x + s->mb_y*s->mb_stride;
         memset(h->non_zero_count_cache, 0, sizeof(h->non_zero_count_cache));