1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avformat/smoothstreaming: Forward errors from copying white/blacklists

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2019-12-20 18:50:21 +01:00
parent 9fe30bd9a9
commit 6c777a6688

View File

@ -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;