Signed-off-by: James Almer <[email protected]>
---
 libavcodec/bitpacked_dec.c | 7 +++++++
 1 file changed, 7 insertions(+)

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);
-- 
2.40.1

_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to