libavcodec/rv34: error out earlier on missing references