Mercurial > libavcodec.hg
comparison h263dec.c @ 6453:3cd8e50f4e1e libavcodec
Avoid linking with h263 and mpeg4 find_frame_end()
when those codecs are not enabled.
author | aurel |
---|---|
date | Wed, 05 Mar 2008 14:46:51 +0000 |
parents | 83cb2494fb8a |
children | 493dc59d469a |
comparison
equal
deleted
inserted
replaced
6452:2a2f9cb7f1b0 | 6453:3cd8e50f4e1e |
---|---|
353 } | 353 } |
354 | 354 |
355 if(s->flags&CODEC_FLAG_TRUNCATED){ | 355 if(s->flags&CODEC_FLAG_TRUNCATED){ |
356 int next; | 356 int next; |
357 | 357 |
358 if(s->codec_id==CODEC_ID_MPEG4){ | 358 if(ENABLE_MPEG4_DECODER && s->codec_id==CODEC_ID_MPEG4){ |
359 next= ff_mpeg4_find_frame_end(&s->parse_context, buf, buf_size); | 359 next= ff_mpeg4_find_frame_end(&s->parse_context, buf, buf_size); |
360 }else if(s->codec_id==CODEC_ID_H263){ | 360 }else if(ENABLE_H263_DECODER && s->codec_id==CODEC_ID_H263){ |
361 next= ff_h263_find_frame_end(&s->parse_context, buf, buf_size); | 361 next= ff_h263_find_frame_end(&s->parse_context, buf, buf_size); |
362 }else{ | 362 }else{ |
363 av_log(s->avctx, AV_LOG_ERROR, "this codec does not support truncated bitstreams\n"); | 363 av_log(s->avctx, AV_LOG_ERROR, "this codec does not support truncated bitstreams\n"); |
364 return -1; | 364 return -1; |
365 } | 365 } |