matroskaenc: check avio_open_dyn_buf return value

CC: libav-stable@libav.org
Bug-Id: CID 703629
pull/75/merge
Vittorio Giovara 10 years ago
parent e0caa1eb4e
commit 28c020d4df
  1. 7
      libavformat/matroskaenc.c

@ -1443,8 +1443,11 @@ static int mkv_write_packet_internal(AVFormatContext *s, AVPacket *pkt)
ts += mkv->tracks[pkt->stream_index].ts_offset; ts += mkv->tracks[pkt->stream_index].ts_offset;
if (!s->pb->seekable) { if (!s->pb->seekable) {
if (!mkv->dyn_bc) if (!mkv->dyn_bc) {
avio_open_dyn_buf(&mkv->dyn_bc); ret = avio_open_dyn_buf(&mkv->dyn_bc);
if (ret < 0)
return ret;
}
pb = mkv->dyn_bc; pb = mkv->dyn_bc;
} }

Loading…
Cancel
Save