From 6cf7f30655e95e27fd0394b5a80970d6f9517015 Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Wed, 4 Mar 2015 22:48:43 +0100 Subject: dashenc: Simplify code by using a local variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/dashenc.c') diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 197af19956..6b385ae2e9 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -645,7 +645,7 @@ static int dash_write_header(AVFormatContext *s) else if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) c->has_audio = 1; - set_codec_str(s, os->ctx->streams[0]->codec, os->codec_str, sizeof(os->codec_str)); + set_codec_str(s, st->codec, os->codec_str, sizeof(os->codec_str)); os->first_pts = AV_NOPTS_VALUE; os->max_pts = AV_NOPTS_VALUE; os->segment_index = 1; -- cgit v1.2.3