[vlc-commits] qsv: set the max output length to the block size

Steve Lhomme git at videolan.org
Wed Apr 4 18:27:56 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Aug 31 18:05:53 2017 +0200| [1f1d367956018f7b55309f0d095148bebe253eba] | committer: Steve Lhomme

qsv: set the max output length to the block size

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f1d367956018f7b55309f0d095148bebe253eba
---

 modules/codec/qsv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/qsv.c b/modules/codec/qsv.c
index 920c4857d2..592c804863 100644
--- a/modules/codec/qsv.c
+++ b/modules/codec/qsv.c
@@ -727,7 +727,7 @@ static void qsv_queue_encode_picture(encoder_t *enc, async_task_t *task,
         return;
     }
     memset(&task->bs, 0, sizeof(task->bs));
-    task->bs.MaxLength = sys->params.mfx.BufferSizeInKB * 1000;
+    task->bs.MaxLength = task->block->i_buffer;
     task->bs.Data = task->block->p_buffer;
 
     for (;;) {



More information about the vlc-commits mailing list