diff --git a/libavcodec/bitpacked_dec.c b/libavcodec/bitpacked_dec.c index c1cb6acefe..a2edccc43c 100644 --- a/libavcodec/bitpacked_dec.c +++ b/libavcodec/bitpacked_dec.c @@ -129,13 +129,13 @@ static int bitpacked_decode(AVCodecContext *avctx, void *data, int *got_frame, AVFrame *frame = data; int res; - frame->pict_type = AV_PICTURE_TYPE_I; - frame->key_frame = 1; - res = bc->decode(avctx, frame, avpkt); if (res) return res; + frame->pict_type = AV_PICTURE_TYPE_I; + frame->key_frame = 1; + *got_frame = 1; return buf_size;