History

set bAuReadyFlag to true when we meet a PPS

Licai Guo committed 12 years ago

Commit 8a3518f1 parent a4cecd81 file · +1 −10Browse files

Showing the changes to codec/decoder/core/src/au_parser.cpp (1 of 1 file). Show all

Unified · Split

codec/decoder/core/src/au_parser.cpp+1−10
@@ -174,21 +174,12 @@ uint8_t* ParseNalHeader (PWelsDecoderContext pCtx, SNalUnitHeader* pNalUnitHeade · 173 unmodified lines
174 174
175 switch (pNalUnitHeader->eNalUnitType) {175 switch (pNalUnitHeader->eNalUnitType) {
176 case NAL_UNIT_SEI:176 case NAL_UNIT_SEI:
177
178 if (pCtx->pAccessUnitList->uiAvailUnitsNum > 0) {
179 pCtx->pAccessUnitList->uiEndPos = pCtx->pAccessUnitList->uiAvailUnitsNum - 1;
180 pCtx->bAuReadyFlag = true;
181 }
182
183 break;
184
185 case NAL_UNIT_SPS:177 case NAL_UNIT_SPS:
186 178 case NAL_UNIT_PPS:
187 if (pCtx->pAccessUnitList->uiAvailUnitsNum > 0) {179 if (pCtx->pAccessUnitList->uiAvailUnitsNum > 0) {
188 pCtx->pAccessUnitList->uiEndPos = pCtx->pAccessUnitList->uiAvailUnitsNum - 1;180 pCtx->pAccessUnitList->uiEndPos = pCtx->pAccessUnitList->uiAvailUnitsNum - 1;
189 pCtx->bAuReadyFlag = true;181 pCtx->bAuReadyFlag = true;
190 }182 }
191
192 break;183 break;
193 184
194 case NAL_UNIT_PREFIX:185 case NAL_UNIT_PREFIX:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t