[FFmpeg-devel] [PATCH] dxva2: debug the mismatching buffer sizes

Steve Lhomme robux4 at ycbcr.xyz
Fri Mar 13 12:14:20 EET 2020


---
 libavcodec/dxva2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c
index 32416112bf..6add893f3e 100644
--- a/libavcodec/dxva2.c
+++ b/libavcodec/dxva2.c
@@ -840,7 +840,7 @@ int ff_dxva2_commit_buffer(AVCodecContext *avctx,
 
         result = 0;
     } else {
-        av_log(avctx, AV_LOG_ERROR, "Buffer for type %u was too small\n", type);
+        av_log(avctx, AV_LOG_ERROR, "Buffer for type %u was too small (got %u, need %u)\n", type, dxva_size, size);
         result = -1;
     }
 
-- 
2.17.1



More information about the ffmpeg-devel mailing list