﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1351	error in parsing terminating bit that ends slice_segment_data	dthoang		"A recent change in TDecSlice.cpp introduced an error in the parsing of the terminating bit at the end of slice_segment_data.

{{{
    // Should the sub-stream/stream be terminated after this CTU?
    // (end of slice-segment, end of tile, end of wavefront-CTU-row)
    if (isLastCtuOfSliceSegment ||
         (  ctuXPosInCtus + 1 == tileXPosInCtus + currentTile.getTileWidthInCtus() &&
          ( ctuYPosInCtus + 1 == tileYPosInCtus + currentTile.getTileHeightInCtus() || wavefrontsEnabled)
         )
       )
}}}

Should be changed to:

{{{
    // Should the sub-stream/stream be terminated after this CTU?
    // (end of slice-segment, end of tile, end of wavefront-CTU-row)
    if (!isLastCtuOfSliceSegment &&
         (  ctuXPosInCtus + 1 == tileXPosInCtus + currentTile.getTileWidthInCtus() &&
          ( ctuYPosInCtus + 1 == tileYPosInCtus + currentTile.getTileHeightInCtus() || wavefrontsEnabled)
         )
       )
}}}

Please refer to syntax table 7.3.8.1 of the specification.
"	defect	closed	minor	HM-16.3	HM	HM-16.2	fixed		ksuehring davidf karlsharman jct-vc@…
