Ticket #1369: cbOffset.patch

File cbOffset.patch, 562 bytes (added by kolya, 7 years ago)
  • source/Lib/TLibDecoder/TDecCAVLC.cpp

    diff --git a/source/Lib/TLibDecoder/TDecCAVLC.cpp b/source/Lib/TLibDecoder/TDecCAVLC.cpp
    index f094642..e798bce 100644
    a b  
    395398                READ_SVLC(cbOffset, "cb_qp_offset_list[i]");
     399                assert(cbOffset >= -12 && cbOffset <= 12);
    396400                READ_SVLC(crOffset, "cr_qp_offset_list[i]");
     401                assert(crOffset >= -12 && crOffset <= 12);
    397402                pcPPS->setChromaQpAdjTableAt(chromaQpAdjustmentIndex, cbOffset, crOffset);
    398403