demux: restore strict fragment flag check

inadvertently removed in:
demux: remove experimental FRGM parsing

Change-Id: Ia9bb8211e2153df51e7a01cabe8552524b8ed218
This commit is contained in:
James Zern 2014-12-23 12:47:06 -05:00
parent 4ba8e07425
commit 4e2589ff81

View File

@ -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_;