summaryrefslogtreecommitdiff
path: root/libavformat/beosaudio.cpp
diff options
context:
space:
mode:
authorSam Hocevar <sam+ffmpeg@zoy.org>2005-08-11 22:26:12 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-08-11 22:26:12 +0000
commit9f747cc328de389eb3748038202f753316a0a6ab (patch)
treebdf828f1697214ddf751ea675232f01e80105de2 /libavformat/beosaudio.cpp
parentdbbcfd6bc3d283d9b29e3d4f2e6409fb91e8617b (diff)
minor compilation fix
A few files are not in sync with the change of AVStream's codec member from inline struct to pointer. patch by (Sam Hocevar: sam, zoy org) Originally committed as revision 4505 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/beosaudio.cpp')
-rw-r--r--libavformat/beosaudio.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/beosaudio.cpp b/libavformat/beosaudio.cpp
index f4b6bb9d4b..3f2739b4bf 100644
--- a/libavformat/beosaudio.cpp
+++ b/libavformat/beosaudio.cpp
@@ -287,8 +287,8 @@ static int audio_write_header(AVFormatContext *s1)
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 -EIO;
@@ -365,10 +365,10 @@ static int audio_read_header(AVFormatContext *s1, AVFormatParameters *ap)
return -EIO;
}
/* 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;
return 0;
av_set_pts_info(s1, 48, 1, 1000000); /* 48 bits pts in us */
}