summaryrefslogtreecommitdiff
path: root/libavformat/avienc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-05-30 07:17:28 +0200
committerAnton Khirnov <anton@khirnov.net>2014-06-18 15:03:55 +0200
commitd754ed41727b1fcbab335b510248a9758a73320c (patch)
treea36c3d330f92bd2b3fb6f638a5aaada93f4951c4 /libavformat/avienc.c
parentf792d3cbb8e8e35c54a9358a55dd596b7a40f228 (diff)
downloadffmpeg-d754ed41727b1fcbab335b510248a9758a73320c.tar.gz
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'.
Diffstat (limited to 'libavformat/avienc.c')
-rw-r--r--libavformat/avienc.c4
1 files changed, 2 insertions, 2 deletions
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 */