Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
s->last_frame = av_frame_alloc();
s->last2_frame = av_frame_alloc();
- if (!s->last_frame || !s->last2_frame) {
- av_frame_free(&s->last_frame);
- av_frame_free(&s->last2_frame);
+ if (!s->last_frame || !s->last2_frame)
return AVERROR(ENOMEM);
- }
return 0;
}
.close = cmv_decode_end,
.decode = cmv_decode_frame,
.capabilities = AV_CODEC_CAP_DR1,
+ .caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
};