diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-11-05 16:11:18 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2011-11-05 18:07:19 +0400 |
commit | 0e5ecd806eadf7dd0ec645b1b69310ee76c0cd1c (patch) | |
tree | aa4774ed8070f10d86a16ec814cd39deda0ad8a1 /libavformat/pmpdec.c | |
parent | 454f1657288e75a9797381c8a26598674ea9bd68 (diff) |
Replace remaining av_new_stream() with avformat_new_stream().
Diffstat (limited to 'libavformat/pmpdec.c')
-rw-r--r-- | libavformat/pmpdec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/pmpdec.c b/libavformat/pmpdec.c index ba40003359..88b8998ad9 100644 --- a/libavformat/pmpdec.c +++ b/libavformat/pmpdec.c @@ -47,7 +47,7 @@ static int pmp_header(AVFormatContext *s, AVFormatParameters *ap) { int srate, channels; int i; uint64_t pos; - AVStream *vst = av_new_stream(s, 0); + AVStream *vst = avformat_new_stream(s, NULL); if (!vst) return AVERROR(ENOMEM); vst->codec->codec_type = AVMEDIA_TYPE_VIDEO; @@ -90,9 +90,10 @@ static int pmp_header(AVFormatContext *s, AVFormatParameters *ap) { srate = avio_rl32(pb); channels = avio_rl32(pb) + 1; for (i = 1; i < pmp->num_streams; i++) { - AVStream *ast = av_new_stream(s, i); + AVStream *ast = avformat_new_stream(s, NULL); if (!ast) return AVERROR(ENOMEM); + ast->id = i; ast->codec->codec_type = AVMEDIA_TYPE_AUDIO; ast->codec->codec_id = audio_codec_id; ast->codec->channels = channels; |