[x265] [PATCH] encoder: enable timing info in VPS

Steve Borho steve at borho.org
Tue Feb 25 06:23:07 CET 2014


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1393305775 21600
#      Mon Feb 24 23:22:55 2014 -0600
# Node ID add2242eab0f0bde47c1c3310fcf8ad5b946c29f
# Parent  6214d2609ea806408ed18d92f5f95acad8c8c5d1
encoder: enable timing info in VPS

diff -r 6214d2609ea8 -r add2242eab0f source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Mon Feb 24 22:45:15 2014 -0600
+++ b/source/encoder/encoder.cpp	Mon Feb 24 23:22:55 2014 -0600
@@ -1081,7 +1081,10 @@
 
     /* set the VPS profile information */
     *getVPS()->getPTL() = *sps->getPTL();
-    getVPS()->getTimingInfo()->setTimingInfoPresentFlag(false);
+    TimingInfo *t = getVPS()->getTimingInfo();
+    t->setTimingInfoPresentFlag(true);
+    t->setNumUnitsInTick(param.fpsDenom);
+    t->setTimeScale(param.fpsNum);
 }
 
 void Encoder::initPPS(TComPPS *pps)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265.patch
Type: text/x-patch
Size: 835 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140224/47fdc7d3/attachment.bin>


More information about the x265-devel mailing list