diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-03-05 14:46:51 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-03-05 14:46:51 +0000 |
commit | 0c291f2d0f1ac1e59f745b6578a96aba59c40b49 (patch) | |
tree | 44cd71b2dc2770ac47509e1cdf6b4e5f8a16a3f3 | |
parent | 83cc23c5d395da07852f051bb5f7b27f2cd556fc (diff) | |
download | ffmpeg-0c291f2d0f1ac1e59f745b6578a96aba59c40b49.tar.gz |
Avoid linking with h263 and mpeg4 find_frame_end()
when those codecs are not enabled.
Originally committed as revision 12332 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h263dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index eddaadc837..4dc3cf619a 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -355,9 +355,9 @@ uint64_t time= rdtsc(); if(s->flags&CODEC_FLAG_TRUNCATED){ int next; - if(s->codec_id==CODEC_ID_MPEG4){ + if(ENABLE_MPEG4_DECODER && s->codec_id==CODEC_ID_MPEG4){ next= ff_mpeg4_find_frame_end(&s->parse_context, buf, buf_size); - }else if(s->codec_id==CODEC_ID_H263){ + }else if(ENABLE_H263_DECODER && s->codec_id==CODEC_ID_H263){ next= ff_h263_find_frame_end(&s->parse_context, buf, buf_size); }else{ av_log(s->avctx, AV_LOG_ERROR, "this codec does not support truncated bitstreams\n"); |