Message ID | 20230506173759.7793-2-jamrial@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,1/4] avcodec/bitpacked_enc: add support for uyvy422 encoding | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavcodec/bitpacked_dec.c b/libavcodec/bitpacked_dec.c index c88f861993..064cc29e7a 100644 --- a/libavcodec/bitpacked_dec.c +++ b/libavcodec/bitpacked_dec.c @@ -27,6 +27,7 @@ */ #include "avcodec.h" +#include "decode.h" #include "codec_internal.h" #include "get_bits.h" #include "libavutil/imgutils.h" @@ -43,6 +44,12 @@ static int bitpacked_decode_uyvy422(AVCodecContext *avctx, AVFrame *frame, { int ret; + frame->width = avctx->width; + frame->height = avctx->height; + ret = ff_decode_frame_props(avctx, frame); + if (ret < 0) + return ret; + /* there is no need to copy as the data already match * a known pixel format */ frame->buf[0] = av_buffer_ref(avpkt->buf);
Signed-off-by: James Almer <jamrial@gmail.com> --- libavcodec/bitpacked_dec.c | 7 +++++++ 1 file changed, 7 insertions(+)