From d754ed41727b1fcbab335b510248a9758a73320c Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 30 May 2014 07:17:28 +0200 Subject: riffenc: take an AVStream instead of an AVCodecContext It will be useful in the following commits. Also, rename the AVCodecContext pointer name from 'stream' to 'codec'. --- libavformat/avienc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavformat/avienc.c') diff --git a/libavformat/avienc.c b/libavformat/avienc.c index 076152e21a..87075d4b93 100644 --- a/libavformat/avienc.c +++ b/libavformat/avienc.c @@ -120,7 +120,7 @@ static int avi_write_counters(AVFormatContext *s, int riff_id) assert(avist->frames_hdr_strm); stream = s->streams[n]->codec; avio_seek(pb, avist->frames_hdr_strm, SEEK_SET); - ff_parse_specific_params(stream, &au_byterate, &au_ssize, &au_scale); + ff_parse_specific_params(s->streams[n], &au_byterate, &au_ssize, &au_scale); if (au_ssize == 0) avio_wl32(pb, avist->packet_count); else @@ -248,7 +248,7 @@ static int avi_write_header(AVFormatContext *s) avio_wl16(pb, 0); /* language */ avio_wl32(pb, 0); /* initial frame */ - ff_parse_specific_params(enc, &au_byterate, &au_ssize, &au_scale); + ff_parse_specific_params(st, &au_byterate, &au_ssize, &au_scale); avio_wl32(pb, au_scale); /* scale */ avio_wl32(pb, au_byterate); /* rate */ -- cgit v1.2.3