Showing the changes to codec/encoder/core/src/au_set.cpp (1 of 5 files). Show all
Unified · Split
| @@ -280,10 +280,12 @@ int32_t WelsWriteSpsSyntax (SWelsSPS* pSps, SBitStringAux* pBitStringAux, int32_ · 279 unmodified lines | ||
| 280 | 280 | BsWriteUE (pLocalBitStringAux, pSps->sFrameCrop.iCropTop); // frame_crop_top_offset |
| 281 | 281 | BsWriteUE (pLocalBitStringAux, pSps->sFrameCrop.iCropBottom); // frame_crop_bottom_offset |
| 282 | 282 | } |
| 283 | − | |
| 284 | − BsWriteOneBit (pLocalBitStringAux, pSps->bVuiParamPresentFlag); // vui_parameters_present_flag | |
| 285 | − if (pSps->bVuiParamPresentFlag && bBaseLayer) | |
| 283 | + if (bBaseLayer) { | |
| 284 | + BsWriteOneBit (pLocalBitStringAux, true); // vui_parameters_present_flag | |
| 286 | 285 | WelsWriteVUI (pSps, pBitStringAux); |
| 286 | + } else { | |
| 287 | + BsWriteOneBit (pLocalBitStringAux, false); | |
| 288 | + } | |
| 287 | 289 | return 0; |
| 288 | 290 | } |
| 289 | 291 | |