Skip to content
Snippets Groups Projects
Commit 8779ec91 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/mux: Check return code of av_packet_split_side_data()


Fixes CID1403225

Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 03372d0a
No related branches found
No related tags found
No related merge requests found
......@@ -883,8 +883,11 @@ static int do_packet_auto_bsf(AVFormatContext *s, AVPacket *pkt) {
#if FF_API_LAVF_MERGE_SD
FF_DISABLE_DEPRECATION_WARNINGS
if (st->internal->nb_bsfcs)
av_packet_split_side_data(pkt);
if (st->internal->nb_bsfcs) {
ret = av_packet_split_side_data(pkt);
if (ret < 0)
av_log(s, AV_LOG_WARNING, "Failed to split side data before bitstream filter\n");
}
FF_ENABLE_DEPRECATION_WARNINGS
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment