Commit 6cf7f306 authored by Timo Rothenpieler's avatar Timo Rothenpieler Committed by Martin Storsjö

dashenc: Simplify code by using a local variable

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 25c29d32
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment