[vlc-commits] qsv: reset the buffer size after it's used

Steve Lhomme git at videolan.org
Wed Apr 4 18:28:20 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Fri Sep 29 17:42:02 2017 +0200| [f579726e5fcb211a57b9ca1ddf17bebe862bd744] | committer: Steve Lhomme

qsv: reset the buffer size after it's used

just in case

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

 modules/codec/qsv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/qsv.c b/modules/codec/qsv.c
index 72a5e940c9..04bcf73102 100644
--- a/modules/codec/qsv.c
+++ b/modules/codec/qsv.c
@@ -741,6 +741,8 @@ static block_t *qsv_synchronize_block(encoder_t *enc, async_task_t *task)
     if (task->bs.DecodeTimeStamp < -10000)
         block->i_dts = sys->last_dts + block->i_length;
     sys->last_dts = block->i_dts;
+
+    task->bs.DataLength = task->bs.DataOffset = 0;
     return block;
 }
 



More information about the vlc-commits mailing list