Commit c4fa8430 authored by Semih Esenlik's avatar Semih Esenlik
Browse files

typecast to int and correction of indentation.

parent 9688b910
......@@ -3055,10 +3055,10 @@ void HLSyntaxReader::parseSliceHeader (Slice* pcSlice, PicHeader* picHeader, Par
int bitsSliceAddress = ceilLog2(pps->getNumTiles());
READ_CODE(bitsSliceAddress, uiCode, "slice_address"); sliceAddr = uiCode;
#if JVET_R0210_NUMTILESINSLICE_SIGNALLING
if ((pps->getNumTiles() - sliceAddr) > 1)
if (((int)pps->getNumTiles() - (int)sliceAddr) > 1)
{
#endif
READ_UVLC(uiCode, "num_tiles_in_slice_minus1"); numTilesInSlice = uiCode + 1;
READ_UVLC(uiCode, "num_tiles_in_slice_minus1"); numTilesInSlice = uiCode + 1;
#if JVET_R0210_NUMTILESINSLICE_SIGNALLING
}
else
......
......@@ -1981,10 +1981,10 @@ void HLSWriter::codeSliceHeader ( Slice* pcSlice )
int bitsSliceAddress = ceilLog2(pcSlice->getPPS()->getNumTiles());
WRITE_CODE( pcSlice->getSliceID(), bitsSliceAddress, "slice_address");
#if JVET_R0210_NUMTILESINSLICE_SIGNALLING
if (pcSlice->getPPS()->getNumTiles() - pcSlice->getSliceID() > 1)
if ((int)pcSlice->getPPS()->getNumTiles() - (int)pcSlice->getSliceID() > 1)
{
#endif
WRITE_UVLC(pcSlice->getNumTilesInSlice() - 1, "num_tiles_in_slice_minus1");
WRITE_UVLC(pcSlice->getNumTilesInSlice() - 1, "num_tiles_in_slice_minus1");
#if JVET_R0210_NUMTILESINSLICE_SIGNALLING
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment