They are freed with av_freep(), so the pointers are already consistent.
Unified · Split
| @@ -427,7 +427,6 @@ av_cold int ff_mpv_common_init(MpegEncContext *s) · 426 unmodified lines | ||
| 427 | 427 | } |
| 428 | 428 | |
| 429 | 429 | s->context_initialized = 1; |
| 430 | − memset(s->thread_context, 0, sizeof(s->thread_context)); | |
| 431 | 430 | s->thread_context[0] = s; |
| 432 | 431 | s->slice_context_count = nb_slices; |
| 433 | 432 | |