avcodec/hevc: fix no output of prior pics and pic output flags