[FFmpeg-devel] [PATCH 2/4] avcodec/bitpacked_dec: add missing props to decoded uyvy422 streams
James Almer
jamrial at gmail.com
Sat May 6 20:37:57 EEST 2023
Signed-off-by: James Almer <jamrial at gmail.com>
---
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
More information about the ffmpeg-devel
mailing list