Browse Source

dashenc: Simplify code by using a local variable

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n2.6
Timo Rothenpieler Martin Storsjö 10 years ago
parent
commit
6cf7f30655
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/dashenc.c

+ 1
- 1
libavformat/dashenc.c View File

@@ -645,7 +645,7 @@ static int dash_write_header(AVFormatContext *s)
else if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) else if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO)
c->has_audio = 1; 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->first_pts = AV_NOPTS_VALUE;
os->max_pts = AV_NOPTS_VALUE; os->max_pts = AV_NOPTS_VALUE;
os->segment_index = 1; os->segment_index = 1;


Loading…
Cancel
Save