[FFmpeg-cvslog] avformat/dashdec: simplified code in open_demux_for_component
Steven Liu
git at videolan.org
Thu Jul 4 10:11:02 EEST 2019
ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Thu Jul 4 15:08:41 2019 +0800| [43e0ddd33dac8f7476d493ac78616b364ba28355] | committer: Steven Liu
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 at onvideo.cn>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=43e0ddd33dac8f7476d493ac78616b364ba28355
---
libavformat/dashdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
More information about the ffmpeg-cvslog
mailing list