# HG changeset patch # User jai_menon # Date 1264693521 0 # Node ID 4266e4129b61273949725e27e62db59c361ee283 # Parent b934eb97fffd2abbb85eaea248d4440b4c92ec86 Avoid using deprecated AVFormatParameters::[audio|video]_codec_id field. diff -r b934eb97fffd -r 4266e4129b61 img2.c --- a/img2.c Thu Jan 28 09:11:26 2010 +0000 +++ b/img2.c Thu Jan 28 15:45:21 2010 +0000 @@ -232,12 +232,12 @@ st->duration = last_index - first_index + 1; } - if(ap->video_codec_id){ + if(s1->video_codec_id){ st->codec->codec_type = CODEC_TYPE_VIDEO; - st->codec->codec_id = ap->video_codec_id; - }else if(ap->audio_codec_id){ + st->codec->codec_id = s1->video_codec_id; + }else if(s1->audio_codec_id){ st->codec->codec_type = CODEC_TYPE_AUDIO; - st->codec->codec_id = ap->audio_codec_id; + st->codec->codec_id = s1->audio_codec_id; }else{ st->codec->codec_type = CODEC_TYPE_VIDEO; st->codec->codec_id = av_str2id(img_tags, s->path);