Fixes: leak Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-6674082962997248 Fixes: 62164/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-6674082962997248
Unified · Split
| @@ -7772,10 +7772,11 @@ static int mov_read_iloc(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 7771 unmodified lines | ||
| 7772 | 7772 | return 0; |
| 7773 | 7773 | } |
| 7774 | 7774 | |
| 7775 | − if (c->fc->nb_streams) { | |
| 7775 | + if (c->avif_info) { | |
| 7776 | 7776 | av_log(c->fc, AV_LOG_INFO, "Duplicate iloc box found\n"); |
| 7777 | 7777 | return 0; |
| 7778 | 7778 | } |
| 7779 | + av_assert0(!c->fc->nb_streams); | |
| 7779 | 7780 | |
| 7780 | 7781 | version = avio_r8(pb); |
| 7781 | 7782 | avio_rb24(pb); // flags. |