This is done due to invalid input and therefore the encoder is not affected by it.
Unified · Split
| @@ -616,7 +616,7 @@ int ff_mpv_init_context_frame(MpegEncContext *s) · 615 unmodified lines | ||
| 616 | 616 | } |
| 617 | 617 | if (s->codec_id == AV_CODEC_ID_MPEG4) { |
| 618 | 618 | ALLOC_POOL(mbskip_table, mb_array_size + 2, |
| 619 | − FF_REFSTRUCT_POOL_FLAG_ZERO_EVERY_TIME); | |
| 619 | + !s->encoding ? FF_REFSTRUCT_POOL_FLAG_ZERO_EVERY_TIME : 0); | |
| 620 | 620 | if (!s->encoding) { |
| 621 | 621 | /* cbp, pred_dir */ |
| 622 | 622 | if (!(s->cbp_table = av_mallocz(mb_array_size)) || |