diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2003-08-08 17:52:30 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2003-08-08 17:52:30 +0000 |
commit | fa26a29d6508e71e52abc6d71ee37279b837de37 (patch) | |
tree | b6494397fbc0b6d295321c690648ece3c2879851 /libavformat/au.c | |
parent | ee404803190c6c3827244219ec5f2519786fa885 (diff) | |
download | ffmpeg-fa26a29d6508e71e52abc6d71ee37279b837de37.tar.gz |
add av_new_stream() usage
Originally committed as revision 2109 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/au.c')
-rw-r--r-- | libavformat/au.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libavformat/au.c b/libavformat/au.c index 50f22a8c9a..4a8353c444 100644 --- a/libavformat/au.c +++ b/libavformat/au.c @@ -140,16 +140,9 @@ static int au_read_header(AVFormatContext *s, } /* now we are ready: build format streams */ - st = av_malloc(sizeof(AVStream)); + st = av_new_stream(s, 0); if (!st) return -1; - avcodec_get_context_defaults(&st->codec); - - s->nb_streams = 1; - s->streams[0] = st; - - st->id = 0; - st->codec.codec_type = CODEC_TYPE_AUDIO; st->codec.codec_tag = id; st->codec.codec_id = codec; |