Add check whether writing to bitstream succeeded
Add check whether writing to bitstream succeeded, as it is done in VTM software, See merge request jvet/VVCSoftware_VTM!2275 (merged)
Add check whether writing to bitstream succeeded, as it is done in VTM software, See merge request jvet/VVCSoftware_VTM!2275 (merged)