Unified · Split
| @@ -617,12 +617,12 @@ int ff_mpv_init_context_frame(MpegEncContext *s) · 616 unmodified lines | ||
| 617 | 617 | if (s->codec_id == AV_CODEC_ID_MPEG4) { |
| 618 | 618 | ALLOC_POOL(mbskip_table, mb_array_size + 2, |
| 619 | 619 | FF_REFSTRUCT_POOL_FLAG_ZERO_EVERY_TIME); |
| 620 | − if (!s->encoding) { | |
| 621 | − /* cbp, pred_dir */ | |
| 622 | − if (!(s->cbp_table = av_mallocz(mb_array_size)) || | |
| 623 | − !(s->pred_dir_table = av_mallocz(mb_array_size))) | |
| 624 | − return AVERROR(ENOMEM); | |
| 625 | − } | |
| 620 | + if (!s->encoding) { | |
| 621 | + /* cbp, pred_dir */ | |
| 622 | + if (!(s->cbp_table = av_mallocz(mb_array_size)) || | |
| 623 | + !(s->pred_dir_table = av_mallocz(mb_array_size))) | |
| 624 | + return AVERROR(ENOMEM); | |
| 625 | + } | |
| 626 | 626 | } |
| 627 | 627 | } |
| 628 | 628 | |