mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-17 11:28:05 +00:00
lavf/matroskaenc: Force the minimum value for -reserve_index_space to 2.
Fixes an assertion failure: Assertion size >= 2 failed at libavformat/matroskaenc.c:298
This commit is contained in:
parent
81d1e1e509
commit
d401ba6b3d
@ -2001,6 +2001,8 @@ static int mkv_write_header(AVFormatContext *s)
|
||||
}
|
||||
if ((pb->seekable & AVIO_SEEKABLE_NORMAL) && mkv->reserve_cues_space) {
|
||||
mkv->cues_pos = avio_tell(pb);
|
||||
if (mkv->reserve_cues_space == 1)
|
||||
mkv->reserve_cues_space++;
|
||||
put_ebml_void(pb, mkv->reserve_cues_space);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user