shithub: openh264

Download patch

ref: 122d6a9f15f9bc46b295c0ccd66eb361ea2e897a
parent: 8859924de039ce06cffddf97fd3fe342012bec82
author: xiaotiansf <[email protected]>
date: Tue Feb 5 12:49:41 EST 2019

fix newly Bugzilla reported (Feb. 5) bug 1525361.

--- a/codec/decoder/core/src/decode_slice.cpp
+++ b/codec/decoder/core/src/decode_slice.cpp
@@ -2375,7 +2375,7 @@
     if (pCtx->bMbRefConcealed) {
       SLogContext* pLogCtx = & (pCtx->sLogCtx);
       WelsLog (pLogCtx, WELS_LOG_ERROR, "Ref Picture for B-Slice is lost, B-Slice decoding cannot be continued!");
-      return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_DATA, ERR_INFO_REFERENCE_PIC_LOST);
+      return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_DATA, ERR_INFO_REFERENCE_PIC_LOST) | dsOutOfMemory;
     }
     //predict iMv
     SubMbType subMbType;