Revert "Debug code for HEVC"

This reverts commit 0c91a20716d729b262749c9abbdce6189d6e1110.
HEVC: fix restore_chapter