[x265-commits] [x265] slicetype: prevent gcc 4.8.1 compiler error
Steve Borho
steve at borho.org
Thu Nov 21 21:15:37 CET 2013
details: http://hg.videolan.org/x265/rev/8dc9e5e4a0e6
branches:
changeset: 5249:8dc9e5e4a0e6
user: Steve Borho <steve at borho.org>
date: Thu Nov 21 14:15:27 2013 -0600
description:
slicetype: prevent gcc 4.8.1 compiler error
diffstat:
source/encoder/slicetype.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r e733415996a1 -r 8dc9e5e4a0e6 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp Thu Nov 21 14:04:10 2013 -0600
+++ b/source/encoder/slicetype.cpp Thu Nov 21 14:15:27 2013 -0600
@@ -848,7 +848,7 @@ void Lookahead::slicetypeDecide()
}
}
- int bframes = j - 1;
+ int bframes = X265_MAX(0, j - 1); // max not necessary, but prevents gcc compile error
if (bframes)
list[bframes - 1]->m_lowres.bLastMiniGopBFrame = true;
list[bframes]->m_lowres.leadingBframes = bframes;
More information about the x265-commits
mailing list