Originally committed as revision 22612 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -43,7 +43,7 @@ static void decode_mb(MpegEncContext *s, int ref){
|
| 43 | 43 |
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); |
| 44 | 44 |
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); |
| 45 | 45 |
|
| 46 |
- if(s->codec_id == CODEC_ID_H264){
|
|
| 46 |
+ if(CONFIG_H264_DECODER && s->codec_id == CODEC_ID_H264){
|
|
| 47 | 47 |
H264Context *h= (void*)s; |
| 48 | 48 |
h->mb_xy= s->mb_x + s->mb_y*s->mb_stride; |
| 49 | 49 |
memset(h->non_zero_count_cache, 0, sizeof(h->non_zero_count_cache)); |