mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
segment: Check open_null_ctx() return value
Reported-By: infer
This commit is contained in:
parent
b7a4127a45
commit
8a78ae2d21
@ -351,7 +351,8 @@ static int seg_write_trailer(struct AVFormatContext *s)
|
||||
if (!seg->write_header_trailer) {
|
||||
if ((ret = segment_end(oc, 0)) < 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_ctx(oc->pb);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user