Merge "[spatial svc] Fix one extra frame count during flush"

This commit is contained in:
Minghai Shang 2014-05-05 23:22:09 -07:00 committed by Gerrit Code Review
commit 5504b3c2f1

View File

@ -1000,8 +1000,10 @@ vpx_codec_err_t vpx_svc_encode(SvcContext *svc_ctx, vpx_codec_ctx_t *codec_ctx,
(int)si->frame_size, (int)pts);
}
}
++si->frame_within_gop;
++si->encode_frame_count;
if (rawimg != NULL) {
++si->frame_within_gop;
++si->encode_frame_count;
}
return VPX_CODEC_OK;
}