ref: 79891067e9a712f74c107f7d42c5d2e1ba81dfe6
parent: da0f65ea0af5e72d003d457756e1d76978d0ba57
author: Haibo Zhu <haibozhu@cisco.com>
date: Thu Jul 10 16:17:18 EDT 2014
Debug for codenomicon bits, when one picture contains diff types of slices(I, P),may request null ref list.
--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -1724,9 +1724,9 @@
int32_t InitRefPicList (PWelsDecoderContext pCtx, const uint8_t kuiNRi, const bool kbFirstSlice, int32_t iPoc) {
int32_t iRet = ERR_NONE;
- if (kbFirstSlice)
- iRet = WelsInitRefList (pCtx, iPoc);
- if ((pCtx->eSliceType != I_SLICE && pCtx->eSliceType != SI_SLICE) && kbFirstSlice) {
+
+ iRet = WelsInitRefList (pCtx, iPoc);
+ if ((pCtx->eSliceType != I_SLICE && pCtx->eSliceType != SI_SLICE) ) {
iRet = WelsReorderRefList (pCtx);
}