Up until now, they are marked as dirty (filled with 1), meaning that the entries are in need of a reset via ff_clean_intra_table_entries(); but actually, the entries are initialized to the state that ff_clean_intra_table_entries() produces, so they can be marked as non-dirty (i.e. filled with 0).
Unified · Split
| @@ -361,9 +361,8 @@ av_cold int ff_mpv_init_context_frame(MpegEncContext *s) · 360 unmodified lines | ||
| 361 | 361 | // Note the + 1 is for a quicker MPEG-4 slice_end detection |
| 362 | 362 | if (!(s->mbskip_table = av_mallocz(mb_array_size + 2)) || |
| 363 | 363 | /* which mb is an intra block, init macroblock skip table */ |
| 364 | − !(s->mbintra_table = av_malloc(mb_array_size))) | |
| 364 | + !(s->mbintra_table = av_mallocz(mb_array_size))) | |
| 365 | 365 | return AVERROR(ENOMEM); |
| 366 | − memset(s->mbintra_table, 1, mb_array_size); | |
| 367 | 366 | |
| 368 | 367 | ALLOC_POOL(qscale_table, mv_table_size, 0); |
| 369 | 368 | ALLOC_POOL(mb_type, mv_table_size * sizeof(uint32_t), 0); |