]> git.sesse.net Git - ffmpeg/commitdiff
avformat/dashdec: simplified code in open_demux_for_component
authorSteven Liu <lq@chinaffmpeg.org>
Thu, 4 Jul 2019 07:08:41 +0000 (15:08 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Thu, 4 Jul 2019 07:08:41 +0000 (15:08 +0800)
change from pls->ctx->streams[i]->codecpar to ist->codecpar

Signed-off-by: Steven Liu <lq@onvideo.cn>
libavformat/dashdec.c

index f0f9aa1d598d9fda7590a0c0ba511a63ce4f2944..8d020f3f48130702ddd31423839b66d4c10f245d 100644 (file)
@@ -1978,7 +1978,7 @@ static int open_demux_for_component(AVFormatContext *s, struct representation *p
             goto fail;
         }
         st->id = i;
-        avcodec_parameters_copy(st->codecpar, pls->ctx->streams[i]->codecpar);
+        avcodec_parameters_copy(st->codecpar, ist->codecpar);
         avpriv_set_pts_info(st, ist->pts_wrap_bits, ist->time_base.num, ist->time_base.den);
     }