[x265] [PATCH] slicetype: fix bug causing encoder crash in b-adapt 2 flow.
Aarthi Priya Thirumalai
aarthi at multicorewareinc.com
Fri Jan 24 13:59:50 CET 2014
# HG changeset patch
# User Aarthi Thirumalai
# Date 1390567762 -19800
# Fri Jan 24 18:19:22 2014 +0530
# Node ID 118235a34a09be7a1a3b15aee18a6d5c08a3a71d
# Parent 807495b7a9fc918b78ac664b273e973f03668818
slicetype: fix bug causing encoder crash in b-adapt 2 flow.
set initial value of best_cost to MAX_COST as frameCost will never be less
than 0.
diff -r 807495b7a9fc -r 118235a34a09 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp Fri Jan 24 11:50:23 2014 +0530
+++ b/source/encoder/slicetype.cpp Fri Jan 24 18:19:22 2014 +0530
@@ -637,7 +637,7 @@
{
char paths[2][X265_LOOKAHEAD_MAX + 1];
int num_paths = X265_MIN(cfg->param.bframes + 1, length);
- uint64_t best_cost = (uint64_t)-1;
+ uint64_t best_cost = (uint64_t)MotionEstimate::COST_MAX;
int idx = 0;
/* Iterate over all currently possible paths */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140124/6191bdb8/attachment.html>
More information about the x265-devel
mailing list