avcodec/hevcdec: fix non-ref frame judgement