diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-20 18:50:21 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-06-24 16:07:38 +0200 |
commit | 6c777a6688715b21a15cab2cd87c8379225e53ec (patch) | |
tree | a960eac36d701f5989622343d5a755ab68f6c1de /libavformat/smoothstreamingenc.c | |
parent | 9fe30bd9a972c2bb6fe03763a0c8584eda19b0b4 (diff) | |
download | ffmpeg-6c777a6688715b21a15cab2cd87c8379225e53ec.tar.gz |
avformat/smoothstreaming: Forward errors from copying white/blacklists
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/smoothstreamingenc.c')
-rw-r--r-- | libavformat/smoothstreamingenc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index 33bb404f46..eefc61d08b 100644 --- a/libavformat/smoothstreamingenc.c +++ b/libavformat/smoothstreamingenc.c @@ -327,10 +327,12 @@ static int ism_write_header(AVFormatContext *s) } os->ctx = ctx = avformat_alloc_context(); - if (!ctx || ff_copy_whiteblacklists(ctx, s) < 0) { + if (!ctx) { ret = AVERROR(ENOMEM); goto fail; } + if ((ret = ff_copy_whiteblacklists(ctx, s)) < 0) + goto fail; ctx->oformat = oformat; ctx->interrupt_callback = s->interrupt_callback; |