diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2021-11-26 14:49:01 +0300 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2021-12-09 04:10:35 +0300 |
commit | 17b434f1ce0bb1687460ee5539fa8038bbc9018c (patch) | |
tree | 61c08228ce440acfe385d4b9a6ba33a3564dae2b /libavcodec | |
parent | b51d772a50c94804a860904f2e14afeca4ca093e (diff) |
avcodec/bitpacked_dec: setting pict_type and key_frame after decode()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/bitpacked_dec.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |