mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-16 11:47:04 +00:00
avformat/dashdec: check return code of avcodec_parameters_copy()
Signed-off-by: Marth64 <marth64@proxyid.net> Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
6ee7555a90
commit
7acc2ebd5d
@ -1949,7 +1949,11 @@ static int open_demux_for_component(AVFormatContext *s, struct representation *p
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
st->id = i;
|
||||
avcodec_parameters_copy(st->codecpar, ist->codecpar);
|
||||
|
||||
ret = avcodec_parameters_copy(st->codecpar, ist->codecpar);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
avpriv_set_pts_info(st, ist->pts_wrap_bits, ist->time_base.num, ist->time_base.den);
|
||||
|
||||
// copy disposition
|
||||
|
Loading…
Reference in New Issue
Block a user