avcodec/hevcdec: do not let updated extradata corrupt state