diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-03-30 15:58:32 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-03-30 16:30:14 +0200 |
commit | 8779ec91b22338ac916c48f5e6255570c44443b0 (patch) | |
tree | d72bd2f2a825c4c5d3ac7de3eb5ef09dcd3f81b7 /libavformat/mux.c | |
parent | 03372d0a90c01ad4e74f7f35cb0022d6bc681575 (diff) | |
download | ffmpeg-8779ec91b22338ac916c48f5e6255570c44443b0.tar.gz |
avformat/mux: Check return code of av_packet_split_side_data()
Fixes CID1403225
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r-- | libavformat/mux.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c index e684385b4d..3a5e876913 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -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 |