diff audio.c @ 820:feca73904e67 libavformat

changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
author michael
date Sun, 17 Jul 2005 22:24:36 +0000
parents aa52767bb802
children da1d5db0ce5c
line wrap: on
line diff
--- a/audio.c	Sun Jul 17 00:28:12 2005 +0000
+++ b/audio.c	Sun Jul 17 22:24:36 2005 +0000
@@ -162,8 +162,8 @@
     int ret;
 
     st = s1->streams[0];
-    s->sample_rate = st->codec.sample_rate;
-    s->channels = st->codec.channels;
+    s->sample_rate = st->codec->sample_rate;
+    s->channels = st->codec->channels;
     ret = audio_open(s, 1, NULL);
     if (ret < 0) {
         return AVERROR_IO;
@@ -234,10 +234,10 @@
     }
 
     /* take real parameters */
-    st->codec.codec_type = CODEC_TYPE_AUDIO;
-    st->codec.codec_id = s->codec_id;
-    st->codec.sample_rate = s->sample_rate;
-    st->codec.channels = s->channels;
+    st->codec->codec_type = CODEC_TYPE_AUDIO;
+    st->codec->codec_id = s->codec_id;
+    st->codec->sample_rate = s->sample_rate;
+    st->codec->channels = s->channels;
 
     av_set_pts_info(st, 48, 1, 1000000);  /* 48 bits pts in us */
     return 0;