aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2015-03-04 22:48:43 +0100
committerMartin Storsjö <martin@martin.st>2015-03-06 10:07:11 +0200
commit6cf7f30655e95e27fd0394b5a80970d6f9517015 (patch)
tree5294f74899d9611cf1f8e3bbbec5b2cc0d942670
parent25c29d32835f38cdc5f0c84fa27dfc489a228770 (diff)
downloadffmpeg-6cf7f30655e95e27fd0394b5a80970d6f9517015.tar.gz
dashenc: Simplify code by using a local variable
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavformat/dashenc.c2
1 files changed, 1 insertions, 1 deletions
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;