X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Findeo2.c;h=f58804bab3104d488f0f33b2cb9598ea3a16be6f;hb=2905e3ff6462431d55f89614b24e2a407707c82a;hp=68c6246f89366ec45988b7d6df2658dc8ef64c76;hpb=9891004ba91a126f56cd02c6f7a7b0c368a158b9;p=ffmpeg diff --git a/libavcodec/indeo2.c b/libavcodec/indeo2.c index 68c6246f893..f58804bab31 100644 --- a/libavcodec/indeo2.c +++ b/libavcodec/indeo2.c @@ -146,9 +146,6 @@ static int ir2_decode_frame(AVCodecContext *avctx, AVFrame * const p= (AVFrame*)&s->picture; int start; - if(p->data[0]) - avctx->release_buffer(avctx, p); - p->reference = 1; p->buffer_hints = FF_BUFFER_HINTS_VALID | FF_BUFFER_HINTS_PRESERVE | FF_BUFFER_HINTS_REUSABLE; if (avctx->reget_buffer(avctx, p)) { @@ -195,6 +192,7 @@ static av_cold int ir2_decode_init(AVCodecContext *avctx){ Ir2Context * const ic = avctx->priv_data; static VLC_TYPE vlc_tables[1 << CODE_VLC_BITS][2]; + avcodec_get_frame_defaults(&ic->picture); ic->avctx = avctx; avctx->pix_fmt= PIX_FMT_YUV410P;