X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fdsicinvideo.c;h=73eea9aeb7ee86db6b266c6a1e7baf9cfedd3990;hb=bd96c54fe4819b3ca9a975e2083d67f4443c559b;hp=d422df068df34c03fc43786872b65dae6a5fd9e8;hpb=3e076faf3b86bb16f746e7c9b0cf3dac5f9a851a;p=ffmpeg diff --git a/libavcodec/dsicinvideo.c b/libavcodec/dsicinvideo.c index d422df068df..73eea9aeb7e 100644 --- a/libavcodec/dsicinvideo.c +++ b/libavcodec/dsicinvideo.c @@ -58,7 +58,6 @@ static av_cold int allocate_buffers(CinVideoContext *cin) cin->bitmap_table[i] = av_mallocz(cin->bitmap_size); if (!cin->bitmap_table[i]) { av_log(cin->avctx, AV_LOG_ERROR, "Can't allocate bitmap buffers.\n"); - destroy_buffers(cin); return AVERROR(ENOMEM); } } @@ -290,7 +289,7 @@ static int cinvideo_decode_frame(AVCodecContext *avctx, break; } - if ((res = ff_reget_buffer(avctx, cin->frame)) < 0) + if ((res = ff_reget_buffer(avctx, cin->frame, 0)) < 0) return res; memcpy(cin->frame->data[1], cin->palette, sizeof(cin->palette)); @@ -322,7 +321,7 @@ static av_cold int cinvideo_decode_end(AVCodecContext *avctx) return 0; } -AVCodec ff_dsicinvideo_decoder = { +const AVCodec ff_dsicinvideo_decoder = { .name = "dsicinvideo", .long_name = NULL_IF_CONFIG_SMALL("Delphine Software International CIN video"), .type = AVMEDIA_TYPE_VIDEO,