[x265] [PATCH] encoder: fix binary mismatch for analysis load vs save with same bitrate
gopu at multicorewareinc.com
gopu at multicorewareinc.com
Wed Dec 3 07:02:46 CET 2014
# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1417586553 -19800
# Wed Dec 03 11:32:33 2014 +0530
# Node ID 50d2b92ecc89bf1de974b2919ca7d0687f0f80a1
# Parent de54cffaecf2c505aef34d34063f9840036dae56
encoder: fix binary mismatch for analysis load vs save with same bitrate
diff -r de54cffaecf2 -r 50d2b92ecc89 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp Tue Dec 02 12:36:41 2014 -0600
+++ b/source/encoder/encoder.cpp Wed Dec 03 11:32:33 2014 +0530
@@ -1580,6 +1580,7 @@
X265_FREE(((analysis_intra_data*)analysis->intraData)->modes);
X265_FREE(((analysis_intra_data*)analysis->intraData)->partSizes);
X265_FREE(analysis->interData);
+ X265_FREE(analysis->intraData);
}
void Encoder::readAnalysisFile(x265_analysis_data* analysis, int curPoc)
@@ -1632,6 +1633,7 @@
X265_FREAD(((analysis_intra_data *)analysis->intraData)->depth, sizeof(uint8_t), analysis->numCUsInFrame * analysis->numPartitions, m_analysisFile);
X265_FREAD(((analysis_intra_data *)analysis->intraData)->modes, sizeof(uint8_t), analysis->numCUsInFrame * analysis->numPartitions, m_analysisFile);
X265_FREAD(((analysis_intra_data *)analysis->intraData)->partSizes, sizeof(char), analysis->numCUsInFrame * analysis->numPartitions, m_analysisFile);
+ analysis->sliceType = X265_TYPE_I;
consumedBytes += frameRecordSize;
}
else if (analysis->sliceType == X265_TYPE_P)
More information about the x265-devel
mailing list