To fix video editor crash issue

BZ: 52577

When the sdcard is short of storage, video editor will
fail to write the encoded data to SDcard. When this error
happens, current error handling code forgets to derease
the encoded buffer reference count. This will cause
buffer's refcount check fails, which lead to video editor
crash.

Change-Id: I175790640a5fbbe226d0e17f3d6a752337e6b124
Signed-off-by: wfeng6 <wei.feng@intel.com>
Reviewed-on: http://android.intel.com:8080/62380
Reviewed-by: Gu, Wangyi <wangyi.gu@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
2 files changed