[FFmpeg-cvslog] r12332 - trunk/libavcodec/h263dec.c

aurel subversion
Wed Mar 5 15:46:51 CET 2008


Author: aurel
Date: Wed Mar  5 15:46:51 2008
New Revision: 12332

Log:
Avoid linking with h263 and mpeg4 find_frame_end()
when those codecs are not enabled.


Modified:
   trunk/libavcodec/h263dec.c

Modified: trunk/libavcodec/h263dec.c
==============================================================================
--- trunk/libavcodec/h263dec.c	(original)
+++ trunk/libavcodec/h263dec.c	Wed Mar  5 15:46:51 2008
@@ -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");




More information about the ffmpeg-cvslog mailing list