changeset 5600:4266e4129b61 libavformat

Avoid using deprecated AVFormatParameters::[audio|video]_codec_id field.
author jai_menon
date Thu, 28 Jan 2010 15:45:21 +0000
parents b934eb97fffd
children 96d885709963
files img2.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);