X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fproresenc_anatoliy.c;h=634ff08732fa6378f76f431310e72e69890d46c9;hb=546d69eb43e831bb67a8a0d54a8762a315710c94;hp=f471f4987e8958905897ce717bab27a64ed5e232;hpb=2fbdf30efe994a9956a27d845010b57a5fc1deeb;p=ffmpeg diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index f471f4987e8..634ff08732f 100644 --- a/libavcodec/proresenc_anatoliy.c +++ b/libavcodec/proresenc_anatoliy.c @@ -304,7 +304,7 @@ static int encode_slice_plane(AVCodecContext *avctx, int mb_count, } blocks_per_slice = mb_count << (2 - chroma); - init_put_bits(&pb, buf, buf_size << 3); + init_put_bits(&pb, buf, buf_size); encode_dc_coeffs(&pb, blocks, blocks_per_slice, qmat); encode_ac_coeffs(avctx, &pb, blocks, blocks_per_slice, qmat); @@ -601,7 +601,7 @@ static av_cold int prores_encode_init(AVCodecContext *avctx) static av_cold int prores_encode_close(AVCodecContext *avctx) { ProresContext* ctx = avctx->priv_data; - av_freep(&avctx->coded_frame); + av_frame_free(&avctx->coded_frame); av_freep(&ctx->fill_y); return 0;