changeset 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 2a2f9cb7f1b0
children f2f07ec2ab06
files h263dec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/h263dec.c	Wed Mar 05 06:58:20 2008 +0000
+++ b/h263dec.c	Wed Mar 05 14:46:51 2008 +0000
@@ -355,9 +355,9 @@
     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");