ffmpeg | branch: master | Marth64 <mart...@proxyid.net> | Sat Oct 12 12:32:12 2024 -0500| [7332b1700e3b257dd80341f40305cf0bf4582fcf] | committer: Marth64
avformat/sapdec: check return value of avcodec_parameters_copy() Written in the dominant style of the surrounding code block. Signed-off-by: Marth64 <mart...@proxyid.net> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7332b1700e3b257dd80341f40305cf0bf4582fcf --- libavformat/sapdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/sapdec.c b/libavformat/sapdec.c index d5b5d71c02..22db3803c9 100644 --- a/libavformat/sapdec.c +++ b/libavformat/sapdec.c @@ -179,7 +179,9 @@ static int sap_read_header(AVFormatContext *s) goto fail; } st->id = i; - avcodec_parameters_copy(st->codecpar, sap->sdp_ctx->streams[i]->codecpar); + ret = avcodec_parameters_copy(st->codecpar, sap->sdp_ctx->streams[i]->codecpar); + if (ret < 0) + goto fail; st->time_base = sap->sdp_ctx->streams[i]->time_base; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".