avformat/dashdec: simplified code in open_demux_for_component

change from pls->ctx->streams[i]->codecpar to ist->codecpar

Signed-off-by: Steven Liu <lq@onvideo.cn>
This commit is contained in:
Steven Liu 2019-07-04 15:08:41 +08:00
parent 664a27ea40
commit 43e0ddd33d
1 changed files with 1 additions and 1 deletions

View 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);
}