diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-11-05 13:11:18 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2011-11-05 15:07:19 +0100 |
commit | 0e5ecd806eadf7dd0ec645b1b69310ee76c0cd1c (patch) | |
tree | aa4774ed8070f10d86a16ec814cd39deda0ad8a1 /libavformat/wav.c | |
parent | 454f1657288e75a9797381c8a26598674ea9bd68 (diff) | |
download | ffmpeg-0e5ecd806eadf7dd0ec645b1b69310ee76c0cd1c.tar.gz |
Replace remaining av_new_stream() with avformat_new_stream().
Diffstat (limited to 'libavformat/wav.c')
-rw-r--r-- | libavformat/wav.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c index b690cc1a8f..096f706c37 100644 --- a/libavformat/wav.c +++ b/libavformat/wav.c @@ -485,10 +485,11 @@ static int wav_read_header(AVFormatContext *s, goto break_loop; } av_log(s, AV_LOG_DEBUG, "Found SMV data\n"); - vst = av_new_stream(s, 1); + vst = avformat_new_stream(s, NULL); if (!vst) return AVERROR(ENOMEM); avio_r8(pb); + vst->id = 1; vst->codec->codec_type = AVMEDIA_TYPE_VIDEO; vst->codec->codec_id = CODEC_ID_MJPEG; vst->codec->width = avio_rl24(pb); |