mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-15 11:44:49 +00:00
cljr: release picture at end of decoding
Otherwise after transcoding from cljr we get: Found 1 unreleased buffers! Signed-off-by: Janne Grunau <janne-libav@jannau.net>
This commit is contained in:
parent
392107ad07
commit
04a5eaa1a5
@ -129,6 +129,13 @@ static av_cold int decode_init(AVCodecContext *avctx){
|
||||
return 0;
|
||||
}
|
||||
|
||||
static av_cold int decode_end(AVCodecContext *avctx) {
|
||||
CLJRContext *a = avctx->priv_data;
|
||||
|
||||
if (a->picture.data[0]);
|
||||
avctx->release_buffer(avctx, &a->picture);
|
||||
}
|
||||
|
||||
#if CONFIG_CLJR_ENCODER
|
||||
static av_cold int encode_init(AVCodecContext *avctx){
|
||||
|
||||
@ -144,6 +151,7 @@ AVCodec ff_cljr_decoder = {
|
||||
.id = CODEC_ID_CLJR,
|
||||
.priv_data_size = sizeof(CLJRContext),
|
||||
.init = decode_init,
|
||||
.close = decode_end,
|
||||
.decode = decode_frame,
|
||||
.capabilities = CODEC_CAP_DR1,
|
||||
.long_name = NULL_IF_CONFIG_SMALL("Cirrus Logic AccuPak"),
|
||||
|
Loading…
Reference in New Issue
Block a user