[vlc-commits] qsv: Remove erroneous check

Hugo Beauzée-Luyssen git at videolan.org
Thu Aug 24 14:05:45 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Aug 24 13:54:09 2017 +0200| [a2ec3f6769319f5dbbe274b5b2dd95c142a268a6] | committer: Hugo Beauzée-Luyssen

qsv: Remove erroneous check

This was causing the first frame to have no pts/dts

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

 modules/codec/qsv.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/codec/qsv.c b/modules/codec/qsv.c
index d9fb45d60d..c78fc8c37f 100644
--- a/modules/codec/qsv.c
+++ b/modules/codec/qsv.c
@@ -621,9 +621,6 @@ static void qsv_set_block_flags(block_t *block, uint16_t frame_type)
  */
 static void qsv_set_block_ts(encoder_t *enc, encoder_sys_t *sys, block_t *block, mfxBitstream *bs)
 {
-    if (!bs->TimeStamp)
-        return;
-
     block->i_pts = qsv_timestamp_to_mtime(bs->TimeStamp) + sys->offset_pts;
     block->i_dts = qsv_timestamp_to_mtime(bs->DecodeTimeStamp) + sys->offset_pts;
 



More information about the vlc-commits mailing list