Browse Source

segment: Check open_null_ctx() return value

Reported-By: infer
tags/n2.8
Vittorio Giovara 10 years ago
parent
commit
8a78ae2d21
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/segment.c

+ 2
- 1
libavformat/segment.c View File

@@ -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…
Cancel
Save