fix AVC profile/level invalid debug traces
avoid useless processing in case debug logs are not enabled