[FFmpeg-devel] [PATCH 2/2] lavc/qsvenc: enlarge the SPS buffer to retrieve larger header

Xiang, Haihao haihao.xiang at intel.com
Tue Aug 23 09:19:05 EEST 2022


From: gavin zhang <gavin.zhang at intel.com>

Increase SPS header buffer to support larger header

Signed-off-by: gavin zhang <gavin.zhang at intel.com>
Signed-off-by: Haihao Xiang <haihao.xiang at intel.com>
---
 libavcodec/qsvenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index f1838ce597..7ac5390f10 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -1064,7 +1064,7 @@ static int qsv_retrieve_enc_params(AVCodecContext *avctx, QSVEncContext *q)
 {
     AVCPBProperties *cpb_props;
 
-    uint8_t sps_buf[128];
+    uint8_t sps_buf[512];
     uint8_t pps_buf[128];
 
     mfxExtCodingOptionSPSPPS extradata = {
-- 
2.17.1



More information about the ffmpeg-devel mailing list