Ticket #1050: 1050.patch

File 1050.patch, 1.1 KB (added by PhuongNguyen, 11 years ago)

Patch for ticket #1050

  • source/Lib/TLibDecoder/TDecSlice.cpp

     
    367367#endif
    368368    pcSbacDecoders[uiSubStrm].load(pcSbacDecoder);
    369369
     370    // In WPP, the text requires to parse the syntax element end_of_sub_stream_one_bit at the end of
     371    // each tile line if end_of_slice_segment_flag is equal to 0. It corresponds to the syntax element
     372    // alignment_bit_equal_to_one and it must be equal to one.
     373    UInt uiTileRightEdgePosInCU = rpcPic->getPicSym()->getTComTile(rpcPic->getPicSym()->getTileIdxMap(iCUAddr))->getRightEdgePosInCU();
     374    UInt ruiBit;
     375    if ( (uiCol == uiTileRightEdgePosInCU) && (pcSlice->getPPS()->getEntropyCodingSyncEnabledFlag()) && !uiIsLast)
     376    {
     377      pcSbacDecoder->parseTerminatingBit(ruiBit);
     378      assert (ruiBit);
     379    }
     380
    370381    //Store probabilities of second LCU in line into buffer
    371382    if ( (uiCol == uiTileLCUX+1)&& (depSliceSegmentsEnabled || (pcSlice->getPPS()->getNumSubstreams() > 1)) && (pcSlice->getPPS()->getEntropyCodingSyncEnabledFlag()) )
    372383    {