summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2019-07-04 15:08:41 +0800
committerSteven Liu <lq@chinaffmpeg.org>2019-07-04 15:08:41 +0800
commit43e0ddd33dac8f7476d493ac78616b364ba28355 (patch)
tree755592243a36dbedefa50ce9037c0fb0f8690b56 /libavformat
parent664a27ea40be078fe452d0cded513af2078d4a52 (diff)
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>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/dashdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index f0f9aa1d59..8d020f3f48 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -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);
}