mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
demux: restore strict fragment flag check
inadvertently removed in: demux: remove experimental FRGM parsing Change-Id: Ia9bb8211e2153df51e7a01cabe8552524b8ed218
This commit is contained in:
parent
4ba8e07425
commit
4e2589ff81
@ -593,6 +593,7 @@ static int IsValidExtendedFormat(const WebPDemuxer* const dmux) {
|
||||
if (dmux->canvas_width_ <= 0 || dmux->canvas_height_ <= 0) return 0;
|
||||
if (dmux->loop_count_ < 0) return 0;
|
||||
if (dmux->state_ == WEBP_DEMUX_DONE && dmux->frames_ == NULL) return 0;
|
||||
if (is_fragmented) return 0;
|
||||
|
||||
while (f != NULL) {
|
||||
const int cur_frame_set = f->frame_num_;
|
||||
|
Loading…
Reference in New Issue
Block a user