Browse Source

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
tags/v0.5
Aurelien Jacobs 17 years ago
parent
commit
0c291f2d0f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/h263dec.c

+ 2
- 2
libavcodec/h263dec.c View File

@@ -355,9 +355,9 @@ uint64_t time= rdtsc();
if(s->flags&CODEC_FLAG_TRUNCATED){ if(s->flags&CODEC_FLAG_TRUNCATED){
int next; 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); 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); next= ff_h263_find_frame_end(&s->parse_context, buf, buf_size);
}else{ }else{
av_log(s->avctx, AV_LOG_ERROR, "this codec does not support truncated bitstreams\n"); av_log(s->avctx, AV_LOG_ERROR, "this codec does not support truncated bitstreams\n");


Loading…
Cancel
Save