Commit 449c74f6 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '8a78ae2d'

* commit '8a78ae2d':
  segment: Check open_null_ctx() return value
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 63b03562 8a78ae2d
......@@ -860,7 +860,8 @@ static int seg_write_trailer(struct AVFormatContext *s)
if (!seg->write_header_trailer) {
if ((ret = segment_end(s, 0, 1)) < 0)
goto fail;
open_null_ctx(&oc->pb);
if ((ret = open_null_ctx(&oc->pb)) < 0)
goto fail;
ret = av_write_trailer(oc);
close_null_ctxp(&oc->pb);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment