not move offset when output codecdata and keep SPS/PPS integrity in each sequence

BZ: 102624

on Merrifield, PPS is always changed for each sequence, so keep SPS/PPS in each sequence header and avoid issue in seeking
after IMG updates its firmware, PPS will be same in while session. see IMG ticket #25280

Change-Id: Id86f276d28bba88b6967f79d2595c5ae99789fca
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Reviewed-on: http://android.intel.com:8080/109164
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
diff --git a/videoencoder/VideoEncoderAVC.cpp b/videoencoder/VideoEncoderAVC.cpp
index 57ff5d5..b4f0222 100644
--- a/videoencoder/VideoEncoderAVC.cpp
+++ b/videoencoder/VideoEncoderAVC.cpp
@@ -494,8 +494,8 @@
 
     if (headerSize <= outBuffer->bufferSize) {
         memcpy(outBuffer->data, (uint8_t *)mCurSegment->buf + mOffsetInSeg, headerSize);
-        mTotalSizeCopied += headerSize;
-        mOffsetInSeg += headerSize;
+//        mTotalSizeCopied += headerSize;
+//        mOffsetInSeg += headerSize;
         outBuffer->dataSize = headerSize;
         outBuffer->remainingSize = 0;
         outBuffer->flag |= ENCODE_BUFFERFLAG_ENDOFFRAME;