[x265] [PATCH] y4m : bug fix for calculating framesize in skipFrames()
Gopu Govindaswamy
gopu at multicorewareinc.com
Mon Oct 28 07:29:56 CET 2013
# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1382941787 -19800
# Node ID 7916afc6c9c4835e0db6abe4a87f9b7c3579deec
# Parent ef2428fd32feddd60168f3430c50f4d7e6f02741
y4m : bug fix for calculating framesize in skipFrames()
diff -r ef2428fd32fe -r 7916afc6c9c4 source/input/y4m.cpp
--- a/source/input/y4m.cpp Mon Oct 28 00:08:06 2013 -0500
+++ b/source/input/y4m.cpp Mon Oct 28 11:59:47 2013 +0530
@@ -232,7 +232,7 @@
void Y4MInput::skipFrames(int numFrames)
{
- const size_t count = (width * height * 3 / 2) + strlen(header);
+ const size_t count = (width * height * 3 / 2) + strlen(header) + 1;
for (int i = 0; i < numFrames; i++)
{
ifs.ignore(count);
More information about the x265-devel
mailing list